• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Revisionee442e8a32aa830b7773c35c30bbcd0c290cd457 (tree)
Time2019-03-21 17:14:44
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Ignore screen size when determines mForceDefaultOrientation

Change Summary

Incremental Difference

--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -2419,7 +2419,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
24192419 // so if the orientation is forced, we need to respect that no matter what.
24202420 final boolean isTv = mContext.getPackageManager().hasSystemFeature(
24212421 PackageManager.FEATURE_LEANBACK);
2422- mForceDefaultOrientation = ((longSizeDp >= 960 && shortSizeDp >= 720) || isCar || isTv) &&
2422+ mForceDefaultOrientation = (/*(longSizeDp >= 960 && shortSizeDp >= 720) ||*/ isCar || isTv) &&
24232423 res.getBoolean(com.android.internal.R.bool.config_forceDefaultOrientation) &&
24242424 // For debug purposes the next line turns this feature off with:
24252425 // $ adb shell setprop config.override_forced_orient true