code: public static void supportDismissOnLoaderCallback(Handler handler, final android.support.v4.app.FragmentManager manager, final String tag) {
          handler.post(new Runnable() {
              @Override
              public void run() {
                  android.support.v4.app.DialogFragment fragment = (android.support.v4.app.DialogFragment) manager.findFragmentByTag(tag);
                  if (fragment != null) {
                      fragment.dismiss();
                  }
              }
          });
      }
docs: Dismiss {@link android.support.v4.app.DialogFragment} for the tag on the loader callbacks with the specified {@link android.os.Handler}.
  @param handler the handler, in most case, this handler is the main handler.
  @param manager the manager.
  @param tag the tag string that is related to the {@link android.support.v4.app.DialogFragment}.