code: public static void setReplicationsPending(Context context, Class<? extends
          PeriodicReplicationService> prsClass, boolean pending) {
          SharedPreferences prefs = context.getSharedPreferences(PREFERENCES_FILE_NAME, Context
              .MODE_PRIVATE);
          SharedPreferences.Editor editor = prefs.edit();
          editor.putBoolean(constructKey(prsClass, REPLICATIONS_PENDING_SUFFIX), pending);
          editor.apply();
      }
docs: Sets whether there are replications pending. This may be because replications are
  currently in progress and have not yet completed, or because a previous scheduled
  replication didn't take place because the conditions for replication were not met.
  @param context
  @param prsClass
  @param pending true if there is a replication pending, or false otherwise.