frameworks/base
Revision | ee442e8a32aa830b7773c35c30bbcd0c290cd457 (tree) |
---|---|
Time | 2019-03-21 17:14:44 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Ignore screen size when determines mForceDefaultOrientation
@@ -2419,7 +2419,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { | ||
2419 | 2419 | // so if the orientation is forced, we need to respect that no matter what. |
2420 | 2420 | final boolean isTv = mContext.getPackageManager().hasSystemFeature( |
2421 | 2421 | PackageManager.FEATURE_LEANBACK); |
2422 | - mForceDefaultOrientation = ((longSizeDp >= 960 && shortSizeDp >= 720) || isCar || isTv) && | |
2422 | + mForceDefaultOrientation = (/*(longSizeDp >= 960 && shortSizeDp >= 720) ||*/ isCar || isTv) && | |
2423 | 2423 | res.getBoolean(com.android.internal.R.bool.config_forceDefaultOrientation) && |
2424 | 2424 | // For debug purposes the next line turns this feature off with: |
2425 | 2425 | // $ adb shell setprop config.override_forced_orient true |