From 85dddfc3c6d77105eec3e34099ee52928db7cb4a Mon Sep 17 00:00:00 2001 From: Beth Thibodeau Date: Thu, 10 Mar 2022 11:50:00 -0500 Subject: Use compat framework to gate session actions Adds CompatChange to check if an app posting media controls targets T, and if so, that app's controls will use PlaybackState actions. Otherwise, the notification actions will be used. The MEDIA_SESSION_ACTIONS flag is set to false by default, and can be used to override this and use session actions for all apps. Fixes: 220034304 Test: atest com.android.systemui.media Test: manual - verify in developer settings, override behavior works Change-Id: Ie032fe9ec8ce7d46b1f9dc8f590ed6fbfa7ee9aa --- data/etc/com.android.systemui.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data/etc/com.android.systemui.xml') diff --git a/data/etc/com.android.systemui.xml b/data/etc/com.android.systemui.xml index d1873a0f40cf..2d1db716b700 100644 --- a/data/etc/com.android.systemui.xml +++ b/data/etc/com.android.systemui.xml @@ -76,5 +76,8 @@ + + + -- cgit v1.2.3-59-g8ed1b