1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-11 04:25:53 +00:00

WIP - Fix RunConditionMonitor#onSharedPreferenceChanged

This commit is contained in:
Catfriend1 2018-07-25 13:00:05 +02:00
parent 947ff691f2
commit 9ecfec9f78

View file

@ -99,9 +99,10 @@ public class RunConditionMonitor implements SharedPreferences.OnSharedPreference
@Override @Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
List<String> watched = Lists.newArrayList( List<String> watched = Lists.newArrayList(
Constants.PREF_POWER_SOURCE, Constants.PREF_RUN_ON_MOBILE_DATA,
Constants.PREF_RUN_ON_WIFI, Constants.PREF_RUN_ON_WIFI,
Constants.PREF_WIFI_SSID_WHITELIST, Constants.PREF_WIFI_SSID_WHITELIST,
Constants.PREF_POWER_SOURCE,
Constants.PREF_RESPECT_BATTERY_SAVING Constants.PREF_RESPECT_BATTERY_SAVING
); );
if (watched.contains(key)) { if (watched.contains(key)) {