diff options
author | Nico <nicorg2529@gmail.com> | 2020-03-10 15:52:30 +0200 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2020-03-15 11:48:18 +0100 |
commit | c3b5589ccf29133767dede4518bb300d9c4b3259 (patch) | |
tree | 5867ce6028a9a2560d8a21f41e694e508948471d /sdk/src/java | |
parent | 06ecc3c16842ec454e7a3eaf1b9d11d71611f556 (diff) | |
download | lineage-sdk-c3b5589ccf29133767dede4518bb300d9c4b3259.tar.gz lineage-sdk-c3b5589ccf29133767dede4518bb300d9c4b3259.tar.bz2 lineage-sdk-c3b5589ccf29133767dede4518bb300d9c4b3259.zip |
Implement edge long swipe gesture [2/3]
Set up standard action setting for long swipe gesture.
(KEY_EDGE_LONG_SWIPE_ACTION)
Change-Id: Ida75e768b822542dea944cc719408e192bbb7d7e
Diffstat (limited to 'sdk/src/java')
-rw-r--r-- | sdk/src/java/lineageos/providers/LineageSettings.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sdk/src/java/lineageos/providers/LineageSettings.java b/sdk/src/java/lineageos/providers/LineageSettings.java index ed961a05..649d11e1 100644 --- a/sdk/src/java/lineageos/providers/LineageSettings.java +++ b/sdk/src/java/lineageos/providers/LineageSettings.java @@ -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. @@ -1167,6 +1167,16 @@ public final class LineageSettings { 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); |