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 ( ) ; }
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 .