lineage-sdk: implement search button play/pause
Change-Id: I409e7633893dd94601fb67bb2cea35868f10af1e
This commit is contained in:
@@ -372,7 +372,7 @@ public final class LineageSettings {
|
||||
new InclusiveIntegerRangeValidator(0, 86400);
|
||||
|
||||
private static final Validator sHardwareKeyActionvalidator =
|
||||
new InclusiveIntegerRangeValidator(0, 10);
|
||||
new InclusiveIntegerRangeValidator(0, 11);
|
||||
|
||||
private static final Validator sAlwaysTrueValidator = new Validator() {
|
||||
@Override
|
||||
@@ -1085,6 +1085,7 @@ public final class LineageSettings {
|
||||
* 8 - Last app
|
||||
* 9 - Toggle split screen
|
||||
* 10 - Kill foreground app
|
||||
* 11 - Play/pause music
|
||||
*/
|
||||
public static final String KEY_HOME_LONG_PRESS_ACTION = "key_home_long_press_action";
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ public class DeviceKeysConstants {
|
||||
SLEEP,
|
||||
LAST_APP,
|
||||
SPLIT_SCREEN,
|
||||
KILL_APP;
|
||||
KILL_APP,
|
||||
PLAY_PAUSE_MUSIC;
|
||||
|
||||
public static Action fromIntSafe(int id) {
|
||||
if (id < NOTHING.ordinal() || id > Action.values().length) {
|
||||
|
||||
Reference in New Issue
Block a user