Merge "Do not skip restoring rotation lock when returning to home" into sc-v2-dev am: 49794ebb48
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16334320 Change-Id: Ic0076cdb9c39381977121463a364cd1253c9e681
This commit is contained in:
@@ -481,7 +481,9 @@ public class RotationButtonController {
|
|||||||
* orientation overview.
|
* orientation overview.
|
||||||
*/
|
*/
|
||||||
public void setSkipOverrideUserLockPrefsOnce() {
|
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) {
|
private boolean shouldOverrideUserLockPrefs(final int rotation) {
|
||||||
|
|||||||
Reference in New Issue
Block a user