• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

frameworks/base


Commit MetaInfo

修訂12c301199f3b36553752a0745676817b3e7e7675 (tree)
時間2020-04-14 23:46:55
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Set forceDesktopMode to true

Change Summary

差異

--- a/services/core/java/com/android/server/wm/DisplayRotation.java
+++ b/services/core/java/com/android/server/wm/DisplayRotation.java
@@ -236,8 +236,8 @@ public class DisplayRotation {
236236 // It's also not likely to rotate a TV screen.
237237 final boolean isTv = mContext.getPackageManager().hasSystemFeature(
238238 PackageManager.FEATURE_LEANBACK);
239- final boolean forceDesktopMode =
240- mService.mForceDesktopModeOnExternalDisplays && !isDefaultDisplay;
239+ final boolean forceDesktopMode = true;
240+ // mService.mForceDesktopModeOnExternalDisplays && !isDefaultDisplay;
241241 mDefaultFixedToUserRotation =
242242 (isCar || isTv || mService.mIsPc || forceDesktopMode)
243243 // For debug purposes the next line turns this feature off with: