Merge "Fix media control flash when unlock device" into tm-qpr-dev am: b272ead9bb am: a40fb53567

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20519892

Change-Id: I26f71f5a0ffd9060f3e0ad7ee6da4fee9144f52e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Michael Mikhail
2022-11-28 23:07:59 +00:00
committed by Automerger Merge Worker

View File

@@ -798,6 +798,16 @@ constructor(
return true
}
if (
desiredLocation == LOCATION_QS &&
previousLocation == LOCATION_LOCKSCREEN &&
statusbarState == StatusBarState.SHADE
) {
// This is an invalid transition, can happen when tapping on home control and the UMO
// while being on landscape orientation in tablet.
return false
}
if (
statusbarState == StatusBarState.KEYGUARD &&
(currentLocation == LOCATION_LOCKSCREEN || previousLocation == LOCATION_LOCKSCREEN)