lineage-sdk: implement search button play/pause

Change-Id: I409e7633893dd94601fb67bb2cea35868f10af1e
This commit is contained in:
Cosmin Tanislav
2025-06-11 21:53:21 +03:00
parent 907bce40dd
commit 4c5cc9538b
2 changed files with 4 additions and 2 deletions

View File

@@ -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";

View File

@@ -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) {