Implement edge long swipe gesture [2/3]

Set up standard action setting for long swipe gesture.
(KEY_EDGE_LONG_SWIPE_ACTION)

Change-Id: Ida75e768b822542dea944cc719408e192bbb7d7e
This commit is contained in:
Nico
2020-03-10 15:52:30 +02:00
committed by Bruno Martins
parent 06ecc3c168
commit c3b5589ccf
2 changed files with 13 additions and 1 deletions

View File

@@ -830,6 +830,7 @@ package lineageos.providers {
field public static final java.lang.String KEY_APP_SWITCH_LONG_PRESS_ACTION = "key_app_switch_long_press_action";
field public static final java.lang.String KEY_ASSIST_ACTION = "key_assist_action";
field public static final java.lang.String KEY_ASSIST_LONG_PRESS_ACTION = "key_assist_long_press_action";
field public static final java.lang.String KEY_EDGE_LONG_SWIPE_ACTION = "key_edge_long_swipe_action";
field public static final java.lang.String KEY_HOME_DOUBLE_TAP_ACTION = "key_home_double_tap_action";
field public static final java.lang.String KEY_HOME_LONG_PRESS_ACTION = "key_home_long_press_action";
field public static final java.lang.String KEY_MENU_ACTION = "key_menu_action";

View File

@@ -1,6 +1,6 @@
/**
* Copyright (C) 2015-2016 The CyanogenMod Project
* Copyright (C) 2017-2019 The LineageOS Project
* 2017-2020 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1166,6 +1166,16 @@ public final class LineageSettings {
public static final Validator KEY_APP_SWITCH_LONG_PRESS_ACTION_VALIDATOR =
new InclusiveIntegerRangeValidator(0, 9);
/**
* Action to perform when the screen edge is long-swiped. (Default is 0)
* (See KEY_HOME_LONG_PRESS_ACTION for valid values)
*/
public static final String KEY_EDGE_LONG_SWIPE_ACTION = "key_edge_long_swipe_action";
/** @hide */
public static final Validator KEY_EDGE_LONG_SWIPE_ACTION_VALIDATOR =
new InclusiveIntegerRangeValidator(0, 9);
/**
* Whether to wake the screen with the home key, the value is boolean.
* 0 = 0ff, 1 = on
@@ -2229,6 +2239,7 @@ public final class LineageSettings {
VALIDATORS.put(KEY_APP_SWITCH_ACTION, KEY_APP_SWITCH_ACTION_VALIDATOR);
VALIDATORS.put(KEY_APP_SWITCH_LONG_PRESS_ACTION,
KEY_APP_SWITCH_LONG_PRESS_ACTION_VALIDATOR);
VALIDATORS.put(KEY_EDGE_LONG_SWIPE_ACTION, KEY_EDGE_LONG_SWIPE_ACTION_VALIDATOR);
VALIDATORS.put(HOME_WAKE_SCREEN, HOME_WAKE_SCREEN_VALIDATOR);
VALIDATORS.put(ASSIST_WAKE_SCREEN, ASSIST_WAKE_SCREEN_VALIDATOR);
VALIDATORS.put(APP_SWITCH_WAKE_SCREEN, APP_SWITCH_WAKE_SCREEN_VALIDATOR);