diff options
author | Danny Baumann <dannybaumann@web.de> | 2016-10-17 16:41:40 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2016-10-17 16:41:40 +0200 |
commit | fac872cfde9c636fb6c26f2807b61030868e58e8 (patch) | |
tree | 160086907e2eb2a6fbe1e613aa2a242fc2eaaf3d | |
parent | d755121d2c4c833d432aaf09810bfcad8e65e9f6 (diff) | |
download | vendor_cmsdk-fac872cfde9c636fb6c26f2807b61030868e58e8.zip vendor_cmsdk-fac872cfde9c636fb6c26f2807b61030868e58e8.tar.gz vendor_cmsdk-fac872cfde9c636fb6c26f2807b61030868e58e8.tar.bz2 |
Add option definition for vibration during zen mode.
Change-Id: I7398adbaa691bc6ec50b56328190a317bee805eb
-rw-r--r-- | sdk/src/java/cyanogenmod/providers/CMSettings.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sdk/src/java/cyanogenmod/providers/CMSettings.java b/sdk/src/java/cyanogenmod/providers/CMSettings.java index 3100546..d5d61b8 100644 --- a/sdk/src/java/cyanogenmod/providers/CMSettings.java +++ b/sdk/src/java/cyanogenmod/providers/CMSettings.java @@ -865,6 +865,19 @@ public final class CMSettings { public static final Validator ZEN_PRIORITY_ALLOW_LIGHTS_VALIDATOR = sBooleanValidator; /** + * Whether vibrations are allowed when in zen priority mode during downtime + * 0: no vibrations + * 1: vibrations for calls only + * 2: vibrations for calls and notifications + * @hide + */ + public static final String ZEN_PRIORITY_VIBRATION_MODE = "zen_priority_vibration_mode"; + + /** @hide */ + public static final Validator ZEN_PRIORITY_VIBRATION_VALIDATOR = + new InclusiveIntegerRangeValidator(0, 2); + + /** * Display style of AM/PM next to clock in status bar * 0: Normal display (Eclair stock) * 1: Small display (Froyo stock) @@ -2109,6 +2122,7 @@ public final class CMSettings { VALIDATORS.put(HEADSET_CONNECT_PLAYER, HEADSET_CONNECT_PLAYER_VALIDATOR); VALIDATORS.put(ZEN_ALLOW_LIGHTS, ZEN_ALLOW_LIGHTS_VALIDATOR); VALIDATORS.put(ZEN_PRIORITY_ALLOW_LIGHTS, ZEN_PRIORITY_ALLOW_LIGHTS_VALIDATOR); + VALIDATORS.put(ZEN_PRIORITY_VIBRATION_MODE, ZEN_PRIORITY_VIBRATION_VALIDATOR); VALIDATORS.put(TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK, TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK_VALIDATOR); VALIDATORS.put(DISPLAY_PICTURE_ADJUSTMENT, |