code: public static boolean showRateDialogIfNeeded(final Context context, int themeId) {
          if (shouldShowRateDialog()) {
              showRateDialog(context, themeId);
              return true;
          } else {
              return false;
          }
      }
docs: Show the rate dialog if the criteria is satisfied.
  @param context Context
  @param themeId Theme ID
  @return true if shown, false otherwise.