|
发表于 2017-5-15 23:23:59
只看该作者
8#
diff --git a/frameworks/base/services/java/com/android/server/wm/WindowManagerService.java b/frameworks/base/services/java/com/android/server/wm/WindowManagerService.java
index f6bc9e0..a73f461 100755
--- a/frameworks/base/services/java/com/android/server/wm/WindowManagerService.java
+++ b/frameworks/base/services/java/com/android/server/wm/WindowManagerService.java
@@ -6045,8 +6045,13 @@ public class WindowManagerService extends IWindowManager.Stub
rotation = Surface.ROTATION_90;
}
+ if(mPolicy.getUserRotationMode() == WindowManagerPolicy.USER_ROTATION_FREE)
+ {
+ rotation = Surface.ROTATION_0;
+ }
+
/* $_rbox_$_modify_$_chenxiao 20140212, force android rotation according to 0 */
- rotation = Surface.ROTATION_0; //SystemProperties.getInt("ro.sf.hwrotation", 0);
+ //rotation = Surface.ROTATION_0; //SystemProperties.getInt("ro.sf.hwrotation", 0);
/* $_rbox_$_modify_$ end */
if (mRotation == rotation && mAltOrientation == altOrientation) {
这个是去掉始终横屏的操作,就是你把rotation = Surface.ROTATION_0; 打开,始终设为0就好 |
|