code: private void setPeriodicReplicationEnabled(boolean running) {
          SharedPreferences.Editor editor = mPrefs.edit();
          editor.putBoolean(constructKey(PERIODIC_REPLICATION_ENABLED_SUFFIX), running);
          editor.apply();
      }
docs: Set a flag in SharedPreferences to indicate whether periodic replications are enabled.
  @param running true to indicate that periodic replications are enabled, otherwise false.