Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b6f29f7 authored by Aurélien Pomini's avatar Aurélien Pomini Committed by Android Build Coastguard Worker
Browse files

Copy sample size in case of static migration

The sample size should be copied, just like the crop hints.

Flag: EXEMPT bugfix
Test: manual verification
Bug: 424802496
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e9142da7f5eb578398526dd4c80552827d0e7e25)
Merged-In: Ie12b000eb7200a2b9c344be28689300ea0856605
Change-Id: Ie12b000eb7200a2b9c344be28689300ea0856605
parent 5e33f6b3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3453,6 +3453,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
        if (sysWP.mCropHints != null) {
            lockWP.mCropHints = sysWP.mCropHints.clone();
        }
        lockWP.mSampleSize = sysWP.mSampleSize;
        lockWP.allowBackup = sysWP.allowBackup;
        lockWP.primaryColors = sysWP.primaryColors;
        lockWP.mWallpaperDimAmount = sysWP.mWallpaperDimAmount;
@@ -4499,6 +4500,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
        });
        pw.print("  mCropHint="); pw.println(wallpaper.cropHint);
        if (multiCrop()) pw.print("  mCropHints="); pw.println(wallpaper.mCropHints);
        pw.print("  mSampleSize="); pw.println(wallpaper.mSampleSize);
        pw.print("  mName=");  pw.println(wallpaper.name);
        pw.print("  mAllowBackup="); pw.println(wallpaper.allowBackup);
        pw.print("  mWallpaperComponent="); pw.println(wallpaper.getComponent());