summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Xiaohui Chen <xiaohuic@google.com> 2015-12-07 09:42:48 -0800
committer Xiaohui Chen <xiaohuic@google.com> 2015-12-07 17:44:18 +0000
commit86fd6d156087d8abe0ac65451db2a6fa7f30722c (patch)
tree98ad5e6252176088aa40ea7149ec43a06b663080
parentad1a018b171f839ece7e5bff5acd59fe69fda000 (diff)
Do not force keyguard orientation to no sensor.
Fixing a bug that if the device is hold in landscape mode during initial device setup, after the setup is done, the screen would rotate to portrait mode and then back to landscape. Bug: 25817950 Change-Id: Ibbcb7be01d8f14d7b6a98f069cb7eb3a94da12bb
-rw-r--r--services/core/java/com/android/server/wm/WindowManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index 410d8100636c..0b851da5420a 100644
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -526,7 +526,7 @@ public class WindowManagerService extends IWindowManager.Stub
boolean mClientFreezingScreen = false;
int mAppsFreezingScreen = 0;
int mLastWindowForcedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
- int mLastKeyguardForcedOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR;
+ int mLastKeyguardForcedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
int mLayoutSeq = 0;