在定制android设备时,刷机后不全屏显示或实现长按Home键current apps全屏显示

在定制android设备时,刷机后初次启动系统不全屏显示或实现长按Home键current apps全屏显示

系统默认是320*480 -- 而我们的MID分辨率是1024*600
那么要进行修改!


diff --git a/frameworks/base/core/java/android/content/res/CompatibilityInfo.java b/frameworks/base/core/java/android/content/res/CompatibilityInfo.java
index 11c67cc..342378a 100644
--- a/frameworks/base/core/java/android/content/res/CompatibilityInfo.java
+++ b/frameworks/base/core/java/android/content/res/CompatibilityInfo.java
@@ -48,12 +48,12 @@ public class CompatibilityInfo {
     /**
      * The default width of the screen in portrait mode.
      */
-    public static final int DEFAULT_PORTRAIT_WIDTH = 320;
+    public static final int DEFAULT_PORTRAIT_WIDTH = 600;

     /**
      * The default height of the screen in portrait mode.
      */   
-    public static final int DEFAULT_PORTRAIT_HEIGHT = 480;
+    public static final int DEFAULT_PORTRAIT_HEIGHT = 1024;

     /**
      *  A compatibility flags

你可能感兴趣的:(java,android,git)