Loading core/java/com/android/internal/view/RotationPolicy.java +4 −2 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.internal.view; import android.content.Context; import android.content.pm.PackageManager; import android.os.SystemProperties; import android.database.ContentObserver; import android.net.Uri; import android.os.AsyncTask; Loading Loading @@ -130,7 +131,8 @@ public final class RotationPolicy { try { IWindowManager wm = WindowManagerGlobal.getWindowManagerService(); if (enabled) { wm.freezeRotation(Surface.ROTATION_0); wm.freezeRotation(SystemProperties.getInt( "persist.panel.orientation", 0) / 90); } else { wm.thawRotation(); } Loading services/java/com/android/server/wm/WindowManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -436,7 +436,7 @@ public class WindowManagerService extends IWindowManager.Stub /** All DisplayContents in the world, kept here */ SparseArray<DisplayContent> mDisplayContents = new SparseArray<DisplayContent>(2); int mRotation = 0; int mRotation = SystemProperties.getInt("persist.panel.orientation", 0) / 90; int mForcedAppOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED; boolean mAltOrientation = false; ArrayList<IRotationWatcher> mRotationWatchers Loading Loading
core/java/com/android/internal/view/RotationPolicy.java +4 −2 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.internal.view; import android.content.Context; import android.content.pm.PackageManager; import android.os.SystemProperties; import android.database.ContentObserver; import android.net.Uri; import android.os.AsyncTask; Loading Loading @@ -130,7 +131,8 @@ public final class RotationPolicy { try { IWindowManager wm = WindowManagerGlobal.getWindowManagerService(); if (enabled) { wm.freezeRotation(Surface.ROTATION_0); wm.freezeRotation(SystemProperties.getInt( "persist.panel.orientation", 0) / 90); } else { wm.thawRotation(); } Loading
services/java/com/android/server/wm/WindowManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -436,7 +436,7 @@ public class WindowManagerService extends IWindowManager.Stub /** All DisplayContents in the world, kept here */ SparseArray<DisplayContent> mDisplayContents = new SparseArray<DisplayContent>(2); int mRotation = 0; int mRotation = SystemProperties.getInt("persist.panel.orientation", 0) / 90; int mForcedAppOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED; boolean mAltOrientation = false; ArrayList<IRotationWatcher> mRotationWatchers Loading