sprd 10.0 修改应用在屏幕显示区域大小

--- a/sprd/frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
+++ b/sprd/frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
@@ -2208,11 +2208,18 @@ public class DisplayPolicy extends AbsDisplayPolicy{
                 insets = Insets.max(insets, source.calculateInsets(
                         dfu, attrs.isFitInsetsIgnoringVisibility()));
             }
-            final int left = (sidesToFit & Side.LEFT) != 0 ? insets.left : 0;//左边距
-            final int top = (sidesToFit & Side.TOP) != 0 ? insets.top : 0;//上边距
-            final int right = (sidesToFit & Side.RIGHT) != 0 ? insets.right : 0;
-            final int bottom = (sidesToFit & Side.BOTTOM) != 0 ? insets.bottom : 0;
-            df.set(left, top, dfu.right - right, dfu.bottom - bottom);
+                       int left=(sidesToFit & Side.LEFT) != 0 ? insets.left : 

你可能感兴趣的:(sprd,10.0)