android默认壁纸被拉伸修改

话不多说,直接上diff,我就是我,不一样的烟火。
diff --git a/P08765_git/frameworks/base/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java b/P08765_git/fraindex fa2ea5e…3db225c 100755— a/P08765_git/frameworks/base/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java+++ b/P08765_git/frameworks/base/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java@@ -667,6 +667,8 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
// scale if the crop height winds up not matching the recommended metrics
needScale = (wallpaper.height != cropHint.height());

  •         if(cropHint.height() >= 1200) needScale = false;
           
           if (DEBUG) {                 
          Slog.v(TAG, "crop: w=" + cropHint.width() + " h=" + cropHint.height());
    

验证OK。

你可能感兴趣的:(Android)