samsung: doze: fix defaults

Change all defaults to false

Change-Id: I2df507b2fc823d3fb07bce89d44067db565a5ab8
tirimbino
Dave Daynard 10 years ago committed by Jan Altensen
parent fcd3f34dc6
commit 7916483736
No known key found for this signature in database
GPG Key ID: 3E45BB95F7AD33DA
  1. 8
      doze/src/com/cyanogenmod/settings/device/SamsungDozeService.java

@ -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);
}
}
};

Loading…
Cancel
Save