diff options
| author | Beth Thibodeau <ethibodeau@google.com> | 2021-11-30 13:11:45 -0500 |
|---|---|---|
| committer | Beth Thibodeau <ethibodeau@google.com> | 2021-12-03 10:27:38 -0500 |
| commit | bbe92d4466e65db9fe7b04d13e9f122b065c6436 (patch) | |
| tree | ac5d68bdec3f3d355a0fa599122337f9393aac12 /core/java/android/widget/TextView.java | |
| parent | 040d933827667f0d0f19ba3cf91a9e95bf9a7622 (diff) | |
Add flag to use PlaybackState actions in media controls
If flag is enabled, media control actions will be created from the
PlaybackState following the pattern: C A (play/pause) B D
A = previous, or custom action (if not reserved)
B = next, or custom action (if not reserved)
C and D = custom actions
Previous and next slots can be reserved by the app sending the extra
SESSION_EXTRAS_KEY_SLOT_RESERVATION_SKIP_TO_PREV (or NEXT), same as
Android Auto. This will result in a blank space in the UI.
If the flag is not enabled, or the app doesn't include a PlaybackState,
notification actions will be used instead (no change in behavior)
Flag can be enabled using:
adb shell am broadcast -a com.android.systemui.action.SET_FLAG --ei id 901 --ez value 1
Fixes: 203800354
Test: atest com.android.systemui.media
Test: manual, toggle flag
Change-Id: Iba20f8ab61c9057cbbd1849bb262da693edd6cb5
Diffstat (limited to 'core/java/android/widget/TextView.java')
0 files changed, 0 insertions, 0 deletions
