Merge "AOD: Use keyguard screen rotation when dozing" into oc-dr1-dev

This commit is contained in:
TreeHugger Robot
2017-06-30 16:55:16 +00:00
committed by Android (Google) Code Review

View File

@@ -138,7 +138,7 @@ public class StatusBarWindowManager implements RemoteInputController.Callback, D
} }
private void adjustScreenOrientation(State state) { private void adjustScreenOrientation(State state) {
if (state.isKeyguardShowingAndNotOccluded()) { if (state.isKeyguardShowingAndNotOccluded() || state.dozing) {
if (mKeyguardScreenRotation) { if (mKeyguardScreenRotation) {
mLpChanged.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_USER; mLpChanged.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_USER;
} else { } else {