private void setPeriodicReplicationEnabled ( boolean running ) { SharedPreferences . Editor editor = mPrefs . edit ( ) ; editor . putBoolean ( constructKey ( PERIODIC_REPLICATION_ENABLED_SUFFIX ) , running ) ; editor . apply ( ) ; }
Set a flag in SharedPreferences to indicate whether periodic replications are enabled .