From a72790f7b09c74da61a40481d4112425a6b9eae3 Mon Sep 17 00:00:00 2001 From: Joey Rizzoli Date: Sat, 18 Feb 2017 20:30:51 +0100 Subject: [PATCH] [3/3] cmsdk: single hand for hw keys Change-Id: Id148d4bd075e2795dbd6328f74cdde471903f100 Signed-off-by: Joey Rizzoli --- .../java/cyanogenmod/providers/CMSettings.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/sdk/src/java/cyanogenmod/providers/CMSettings.java b/sdk/src/java/cyanogenmod/providers/CMSettings.java index 530e0e68..9e0f292c 100644 --- a/sdk/src/java/cyanogenmod/providers/CMSettings.java +++ b/sdk/src/java/cyanogenmod/providers/CMSettings.java @@ -996,12 +996,14 @@ public final class CMSettings { * 7 - Action Sleep * 8 - Last app * 9 - Toggle split screen + * 10 - Single hand (left) + * 11 - Single hand (right) */ public static final String KEY_HOME_LONG_PRESS_ACTION = "key_home_long_press_action"; /** @hide */ public static final Validator KEY_HOME_LONG_PRESS_ACTION_VALIDATOR = - new InclusiveIntegerRangeValidator(0, 9); + new InclusiveIntegerRangeValidator(0, 11); /** * Action to perform when the home key is double-tapped. @@ -1012,7 +1014,7 @@ public final class CMSettings { /** @hide */ public static final Validator KEY_HOME_DOUBLE_TAP_ACTION_VALIDATOR = - new InclusiveIntegerRangeValidator(0, 9); + new InclusiveIntegerRangeValidator(0, 11); /** * Whether to wake the screen with the back key, the value is boolean. @@ -1061,7 +1063,7 @@ public final class CMSettings { /** @hide */ public static final Validator KEY_MENU_ACTION_VALIDATOR = - new InclusiveIntegerRangeValidator(0, 9); + new InclusiveIntegerRangeValidator(0, 11); /** * Action to perform when the menu key is long-pressed. @@ -1072,7 +1074,7 @@ public final class CMSettings { /** @hide */ public static final Validator KEY_MENU_LONG_PRESS_ACTION_VALIDATOR = - new InclusiveIntegerRangeValidator(0, 9); + new InclusiveIntegerRangeValidator(0, 11); /** * Action to perform when the assistant (search) key is pressed. (Default is 3) @@ -1082,7 +1084,7 @@ public final class CMSettings { /** @hide */ public static final Validator KEY_ASSIST_ACTION_VALIDATOR = - new InclusiveIntegerRangeValidator(0, 9); + new InclusiveIntegerRangeValidator(0, 11); /** * Action to perform when the assistant (search) key is long-pressed. (Default is 4) @@ -1092,7 +1094,7 @@ public final class CMSettings { /** @hide */ public static final Validator KEY_ASSIST_LONG_PRESS_ACTION_VALIDATOR = - new InclusiveIntegerRangeValidator(0, 9); + new InclusiveIntegerRangeValidator(0, 11); /** * Action to perform when the app switch key is pressed. (Default is 2) @@ -1102,7 +1104,7 @@ public final class CMSettings { /** @hide */ public static final Validator KEY_APP_SWITCH_ACTION_VALIDATOR = - new InclusiveIntegerRangeValidator(0, 9); + new InclusiveIntegerRangeValidator(0, 11); /** * Action to perform when the app switch key is long-pressed. (Default is 0) @@ -1112,7 +1114,7 @@ public final class CMSettings { /** @hide */ public static final Validator KEY_APP_SWITCH_LONG_PRESS_ACTION_VALIDATOR = - new InclusiveIntegerRangeValidator(0, 9); + new InclusiveIntegerRangeValidator(0, 11); /** * Whether to wake the screen with the home key, the value is boolean.