Merge "Fix media control flash when unlock device" into tm-qpr-dev

This commit is contained in:
Michael Mikhail
2022-11-28 21:49:47 +00:00
committed by Android (Google) Code Review

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)