diff options
| author | Vachounet <vachounet@live.fr> | 2017-07-14 19:58:31 +0200 |
|---|---|---|
| committer | wzedlare <vedatak01@gmail.com> | 2017-07-28 18:22:52 +0000 |
| commit | dfdc2d661ebc9610451913b7783aaa5b40bdb48b (patch) | |
| tree | 4d28291565de292788e13b5a62c404372c9a5377 | |
| parent | fe59c29dafb5bc1c2ad81d7528e11cb56d3f0ffa (diff) | |
CMActions: fix fp haptic setting
Change-Id: Ic55a66ee2586d43f35f04d5996ba3a40953fd575
| -rw-r--r-- | cmactions/res/xml/gesture_panel.xml | 1 | ||||
| -rw-r--r-- | cmactions/src/com/cyanogenmod/settings/device/CMActionsSettings.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cmactions/res/xml/gesture_panel.xml b/cmactions/res/xml/gesture_panel.xml index 1bd1c7a..d791fc9 100644 --- a/cmactions/res/xml/gesture_panel.xml +++ b/cmactions/res/xml/gesture_panel.xml @@ -66,6 +66,7 @@ <SwitchPreference android:key="fp_haptic" android:dependency="fp_home" + android:defaultValue="0" android:title="Fingerprint Gestures Haptic Feedback" android:summary="Vibrate on actions" /> diff --git a/cmactions/src/com/cyanogenmod/settings/device/CMActionsSettings.java b/cmactions/src/com/cyanogenmod/settings/device/CMActionsSettings.java index 5d584fc..a322fad 100644 --- a/cmactions/src/com/cyanogenmod/settings/device/CMActionsSettings.java +++ b/cmactions/src/com/cyanogenmod/settings/device/CMActionsSettings.java @@ -128,7 +128,7 @@ public class CMActionsSettings { mFlipToMuteEnabled = sharedPreferences.getBoolean(GESTURE_FLIP_TO_MUTE_KEY, false); } else if (GESTURE_LIFT_TO_SILENCE_KEY.equals(key)) { mLiftToSilenceEnabled = sharedPreferences.getBoolean(GESTURE_LIFT_TO_SILENCE_KEY, false); - } else if (Constants.FP_HOME_KEY.equals(key) || Constants.FP_KEYS.equals(key) || Constants.FP_KEY_HOLD.equals(key) || Constants.FP_KEY_LEFT.equals(key) || Constants.FP_KEY_RIGHT.equals(key)) { + } else if (Constants.FP_HOME_KEY.equals(key) || Constants.FP_HAPTIC_KEY.equals(key) || Constants.FP_KEYS.equals(key) || Constants.FP_KEY_HOLD.equals(key) || Constants.FP_KEY_LEFT.equals(key) || Constants.FP_KEY_RIGHT.equals(key)) { Constants.writePreference(mContext, key); updated = false; } else { |
