CMActions: fix fp haptic setting
This commit is contained in:
@@ -66,6 +66,7 @@
|
|||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:key="fp_haptic"
|
android:key="fp_haptic"
|
||||||
android:dependency="fp_home"
|
android:dependency="fp_home"
|
||||||
|
android:defaultValue="0"
|
||||||
android:title="Fingerprint Gestures Haptic Feedback"
|
android:title="Fingerprint Gestures Haptic Feedback"
|
||||||
android:summary="Vibrate on actions" />
|
android:summary="Vibrate on actions" />
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ public class CMActionsSettings {
|
|||||||
mFlipToMuteEnabled = sharedPreferences.getBoolean(GESTURE_FLIP_TO_MUTE_KEY, false);
|
mFlipToMuteEnabled = sharedPreferences.getBoolean(GESTURE_FLIP_TO_MUTE_KEY, false);
|
||||||
} else if (GESTURE_LIFT_TO_SILENCE_KEY.equals(key)) {
|
} else if (GESTURE_LIFT_TO_SILENCE_KEY.equals(key)) {
|
||||||
mLiftToSilenceEnabled = sharedPreferences.getBoolean(GESTURE_LIFT_TO_SILENCE_KEY, false);
|
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);
|
Constants.writePreference(mContext, key);
|
||||||
updated = false;
|
updated = false;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user