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:
parent
947ff691f2
commit
9ecfec9f78
1 changed files with 2 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue