code: private void setExplicitlyStopped(boolean explicitlyStopped) {
          SharedPreferences.Editor editor = mPrefs.edit();
          editor.putBoolean(constructKey(EXPLICITLY_STOPPED_SUFFIX), explicitlyStopped);
          editor.apply();
      }
docs: Set a flag in SharedPreferences to indicate whether periodic replications were explicitly
  stopped.
  @param explicitlyStopped true to indicate that periodic replications were stopped
  explicitly by the sending of COMMAND_STOP_PERIODIC_REPLICATION,
  otherwise false.