diff options
| author | Frostbite <burakdede.frostbite@gmail.com> | 2018-01-29 14:07:55 +0300 |
|---|---|---|
| committer | Ali Al-Asadi <alasadi56@gmail.com> | 2018-01-30 20:00:24 +0100 |
| commit | 2afd5aa8fe3a2654bdbb7c5b2bf9bd1892c668cb (patch) | |
| tree | 15dea97f435f8bde193ebb8e668e13d95afbd2d5 | |
| parent | 6744bbf3bc4d70bebf49a36df76508238fa4be05 (diff) | |
MotoActions: Disable chop chop and double-twist actions by default
Change-Id: I031c7b10f251dda8be24115e79e4318068cf0774
| -rw-r--r-- | LineageActions/res/xml/actions_panel.xml | 4 | ||||
| -rwxr-xr-x | LineageActions/src/org/lineageos/settings/device/LineageActionsSettings.java | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/LineageActions/res/xml/actions_panel.xml b/LineageActions/res/xml/actions_panel.xml index 3d907fa..6fff102 100644 --- a/LineageActions/res/xml/actions_panel.xml +++ b/LineageActions/res/xml/actions_panel.xml @@ -24,13 +24,13 @@ <SwitchPreference android:key="gesture_camera_action" - android:defaultValue="true" + android:defaultValue="false" android:title="@string/camera_gesture_title" android:summary="@string/camera_gesture_summary" /> <SwitchPreference android:key="gesture_chop_chop" - android:defaultValue="true" + android:defaultValue="false" android:title="@string/chop_chop_gesture_title" android:summary="@string/chop_chop_gesture_summary" /> diff --git a/LineageActions/src/org/lineageos/settings/device/LineageActionsSettings.java b/LineageActions/src/org/lineageos/settings/device/LineageActionsSettings.java index a5fe006..05f2132 100755 --- a/LineageActions/src/org/lineageos/settings/device/LineageActionsSettings.java +++ b/LineageActions/src/org/lineageos/settings/device/LineageActionsSettings.java @@ -105,8 +105,8 @@ public class LineageActionsSettings { } private void loadPreferences(SharedPreferences sharedPreferences) { - mCameraGestureEnabled = sharedPreferences.getBoolean(GESTURE_CAMERA_ACTION_KEY, true); - mChopChopEnabled = sharedPreferences.getBoolean(GESTURE_CHOP_CHOP_KEY, true); + mCameraGestureEnabled = sharedPreferences.getBoolean(GESTURE_CAMERA_ACTION_KEY, false); + mChopChopEnabled = sharedPreferences.getBoolean(GESTURE_CHOP_CHOP_KEY, false); mIrWakeUpEnabled = sharedPreferences.getBoolean(GESTURE_IR_WAKEUP_KEY, true); mPickUpGestureEnabled = sharedPreferences.getBoolean(GESTURE_PICK_UP_KEY, true); mIrSilencerEnabled = sharedPreferences.getBoolean(GESTURE_IR_SILENCER_KEY, true); @@ -121,9 +121,9 @@ public class LineageActionsSettings { boolean updated = true; if (GESTURE_CAMERA_ACTION_KEY.equals(key)) { - mCameraGestureEnabled = sharedPreferences.getBoolean(GESTURE_CAMERA_ACTION_KEY, true); + mCameraGestureEnabled = sharedPreferences.getBoolean(GESTURE_CAMERA_ACTION_KEY, false); } else if (GESTURE_CHOP_CHOP_KEY.equals(key)) { - mChopChopEnabled = sharedPreferences.getBoolean(GESTURE_CHOP_CHOP_KEY, true); + mChopChopEnabled = sharedPreferences.getBoolean(GESTURE_CHOP_CHOP_KEY, false); } else if (GESTURE_IR_WAKEUP_KEY.equals(key)) { mIrWakeUpEnabled = sharedPreferences.getBoolean(GESTURE_IR_WAKEUP_KEY, true); } else if (GESTURE_PICK_UP_KEY.equals(key)) { |
