From 273d24bc156c8c07d18922039ba0ef6c14f0425b Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sat, 20 Feb 2016 20:19:51 +0100 Subject: [PATCH] Disable keep wakelock setting on restart. --- .../com/nutomic/syncthingandroid/fragments/SettingsFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/nutomic/syncthingandroid/fragments/SettingsFragment.java b/src/main/java/com/nutomic/syncthingandroid/fragments/SettingsFragment.java index e013f68f..7d9f7205 100644 --- a/src/main/java/com/nutomic/syncthingandroid/fragments/SettingsFragment.java +++ b/src/main/java/com/nutomic/syncthingandroid/fragments/SettingsFragment.java @@ -69,6 +69,7 @@ public class SettingsFragment extends PreferenceFragment mOptionsScreen.setEnabled(enabled); mGuiScreen.setEnabled(enabled); mUseRoot.setEnabled(enabled); + mKeepWakelock.setEnabled(enabled); if (currentState == SyncthingService.State.ACTIVE) { Preference syncthingVersion = getPreferenceScreen().findPreference(SYNCTHING_VERSION_KEY);