samsung: doze: fix defaults
authorDave Daynard <nardholio@gmail.com>
Sat, 23 May 2015 22:29:13 +0000 (18:29 -0400)
committerJan Altensen <info@stricted.net>
Fri, 20 Mar 2020 13:56:30 +0000 (14:56 +0100)
Change all defaults to false

Change-Id: I2df507b2fc823d3fb07bce89d44067db565a5ab8

doze/src/com/cyanogenmod/settings/device/SamsungDozeService.java

index 0eff3377052f48160b87b2768698a0e787092ea9..f559544391de1b52188722737a37ab55e63050b9 100644 (file)
@@ -161,8 +161,8 @@ public class SamsungDozeService extends Service {
     }
 
     private void loadPreferences(SharedPreferences sharedPreferences) {
-        mHandwaveGestureEnabled = sharedPreferences.getBoolean(GESTURE_HAND_WAVE_KEY, true);
-        mPocketGestureEnabled = sharedPreferences.getBoolean(GESTURE_POCKET_KEY, true);
+        mHandwaveGestureEnabled = sharedPreferences.getBoolean(GESTURE_HAND_WAVE_KEY, false);
+        mPocketGestureEnabled = sharedPreferences.getBoolean(GESTURE_POCKET_KEY, false);
     }
 
     private BroadcastReceiver mScreenStateReceiver = new BroadcastReceiver() {
@@ -181,9 +181,9 @@ public class SamsungDozeService extends Service {
         @Override
         public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
             if (GESTURE_HAND_WAVE_KEY.equals(key)) {
-                mHandwaveGestureEnabled = sharedPreferences.getBoolean(GESTURE_HAND_WAVE_KEY, true);
+                mHandwaveGestureEnabled = sharedPreferences.getBoolean(GESTURE_HAND_WAVE_KEY, false);
             } else if (GESTURE_POCKET_KEY.equals(key)) {
-                mPocketGestureEnabled = sharedPreferences.getBoolean(key, true);
+                mPocketGestureEnabled = sharedPreferences.getBoolean(GESTURE_POCKET_KEY, false);
             }
         }
     };