CMSDK: Add long-press power for torch CMSetting
This is used to decide whether a user wants to long-press the power button while the display is off to activate the torchlight. Change-Id: I3bfaa4bf5a5452b9af2c412596c6713a151e0ec8
This commit is contained in:
committed by
Rashed Abdel-Tawab
parent
ebf0e84848
commit
952645382c
@@ -1196,6 +1196,17 @@ public final class CMSettings {
|
||||
public static final Validator SWAP_VOLUME_KEYS_ON_ROTATION_VALIDATOR =
|
||||
new InclusiveIntegerRangeValidator(0, 2);
|
||||
|
||||
/**
|
||||
* Activate torchlight when power button is
|
||||
* long-pressed while the display is off
|
||||
* The value is boolean (1 or 0).
|
||||
*/
|
||||
public static final String TORCH_LONG_PRESS_POWER_GESTURE =
|
||||
"torch_long_press_power_gesture";
|
||||
|
||||
/** @hide */
|
||||
public static final Validator TORCH_LONG_PRESS_POWER_GESTURE_VALIDATOR = sBooleanValidator;
|
||||
|
||||
/**
|
||||
* Whether the battery light should be enabled (if hardware supports it)
|
||||
* The value is boolean (1 or 0).
|
||||
@@ -2065,6 +2076,8 @@ public final class CMSettings {
|
||||
VALIDATORS.put(STYLUS_ICON_ENABLED, STYLUS_ICON_ENABLED_VALIDATOR);
|
||||
VALIDATORS.put(SWAP_VOLUME_KEYS_ON_ROTATION,
|
||||
SWAP_VOLUME_KEYS_ON_ROTATION_VALIDATOR);
|
||||
VALIDATORS.put(TORCH_LONG_PRESS_POWER_GESTURE,
|
||||
TORCH_LONG_PRESS_POWER_GESTURE_VALIDATOR);
|
||||
VALIDATORS.put(BATTERY_LIGHT_ENABLED, BATTERY_LIGHT_ENABLED_VALIDATOR);
|
||||
VALIDATORS.put(BATTERY_LIGHT_PULSE, BATTERY_LIGHT_PULSE_VALIDATOR);
|
||||
VALIDATORS.put(BATTERY_LIGHT_LOW_COLOR, BATTERY_LIGHT_LOW_COLOR_VALIDATOR);
|
||||
|
||||
Reference in New Issue
Block a user