Alex Chau d6bc129231 Ensure setRequestedOrientation is called when unfolding the device
- In RotationHelper, mLastActivityFlags defaults to -1, which is the same value as SCREEN_ORIENTATION_UNSPECIFIED. When the screen is folded, a new instance of RotationHelper is created, which attempts to reset setRequestedOrientation to SCREEN_ORIENTATION_UNSPECIFIED. But SCREEN_ORIENTATION_UNSPECIFIED is equal to mLastActivityFlags, and the call is skipped.
- The simpel fix is to default mLastActivityFlags to something else that is not a a valid value of setRequestedOrientation

Bug: 177320461
Change-Id: I1ca284149598745bfa612ee12e4da3b940b60288
(cherry picked from commit 8aa592f44620a8f57fa104819f8bba57c4360f95)
2021-01-18 12:17:09 +00:00
2019-11-25 20:24:07 +09:00
2020-10-26 17:00:36 -07:00
2020-07-27 09:54:47 -07:00
2020-02-24 15:35:49 -08:00
2020-01-17 11:24:43 -08:00
Description
No description provided
815 MiB
Languages
Java 73.1%
Kotlin 26.5%
AIDL 0.3%
Python 0.1%