Android9.0旋轉屏幕壁紙黑一半

--- a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/ImageWallpaper.java
+++ b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/ImageWallpaper.java
@@ -156,8 +156,9 @@ public class ImageWallpaper extends WallpaperService {
             }
 
             // Force the wallpaper to cover the screen in both dimensions
-            int surfaceWidth = Math.max(displayInfo.logicalWidth, mBackgroundWidth);
-            int surfaceHeight = Math.max(displayInfo.logicalHeight, mBackgroundHeight);
+            int surfaceWidth = displayInfo.logicalWidth;
+            int surfaceHeight = displayInfo.logicalHeight;
+            Log.d(TAG, "update wallaper size:" + surfaceWidth + "," + surfaceHeight);
 
             // Used a fixed size surface, because we are special.  We can do
             // this because we know the current design of window animations doesn't
@@ -330,7 +331,7 @@ public class ImageWallpaper extends WallpaperService {
                 if (DEBUG) {
                     Log.d(TAG, "Redrawing wallpaper");
                 }
-
+                Log.d(TAG, "drawFrame availw=" + availw + ",availh=" + availh + ",xPixels=" + xPixels + ",yPixels=" + yPixels);
                 drawWallpaperWithCanvas(sh, availw, availh, xPixels, yPixels);
                 scheduleUnloadWallpaper();
             } finally {

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章