Merge "Do not skip restoring rotation lock when returning to home" into sc-v2-dev

This commit is contained in:
Riddle Hsu
2021-11-25 02:20:20 +00:00
committed by Android (Google) Code Review

View File

@@ -481,7 +481,9 @@ public class RotationButtonController {
* orientation overview.
*/
public void setSkipOverrideUserLockPrefsOnce() {
mSkipOverrideUserLockPrefsOnce = true;
// If live-tile is enabled (recents animation keeps running in overview), there is no
// activity switch so the display rotation is not changed, then it is no need to skip.
mSkipOverrideUserLockPrefsOnce = !mIsRecentsAnimationRunning;
}
private boolean shouldOverrideUserLockPrefs(final int rotation) {