summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAustin T. Conn <atc3030dev@gmail.com>2020-10-28 11:06:30 -0300
committeralk3pInjection <webmaster@raspii.tech>2022-05-07 00:20:58 +0800
commit2a071c3fd6f87e1a54e9e975804b8ab800e0a791 (patch)
treec0f7225fd0e63bb3212b07a843a6545221ff0dfd /core
parentffcc9052a214af8e2d516edfad34ad7b8392f426 (diff)
base: Long press volume button to skip tracks [1/2]
Bring Forward Volume Rocker Track Change Requires Settings Change (packages/apps/Settings) * rituj : AudioService: Allow volume-key long press even when screen is off * mickaelmendes50 : Adapt to Android 11 * Drop previous changes of AudioService as, in theory, the event should never reach it at all. Change-Id: I70b00e08fe48707110725dd1daa56b1e48d15a03 Fix volume rocker skip track on Ambient Display and Lift to Wake we need to check if dream service is dozing before checking keyguard status Change-Id: Ic3a6c830496188bb6edf27043cd24eb2d553bb82 Fix long press volume buttons skip tracks Without that patch, the volume changes up or down prior to skipping tracks because the sendvolumekeyevent doesn't have the mayChangeVolume condition. Also, that part is useless cause the mUseTvRouting condition is taken care of correctly later. Change-Id: I88757315f135f013e7692861d46b3a07fbfc07d5
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/Settings.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 5046ccf95542..64173d5ee713 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -5222,6 +5222,12 @@ public final class Settings {
*/
/**
+ * Whether or not volume button music controls should be enabled to seek media tracks
+ * @hide
+ */
+ public static final String VOLBTN_MUSIC_CONTROLS = "volbtn_music_controls";
+
+ /**
* Keys we no longer back up under the current schema, but want to continue to
* process when restoring historical backup datasets.
*