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

Commit 70baf803 authored by Aurélien Pomini's avatar Aurélien Pomini Committed by Android (Google) Code Review
Browse files

Merge "Fix WallpaperCropper key error." into main

parents a26f3f05 b22d4b10
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -410,9 +410,10 @@ public class WallpaperCropper {
                // adapt the entries in wallpaper.mCropHints for the actual display
                SparseArray<Rect> updatedCropHints = new SparseArray<>();
                for (int i = 0; i < wallpaper.mCropHints.size(); i++) {
                    Rect defaultCrop = defaultDisplayCrops.valueAt(i);
                    int orientation = wallpaper.mCropHints.keyAt(i);
                    Rect defaultCrop = defaultDisplayCrops.get(orientation);
                    if (defaultCrop != null) {
                        updatedCropHints.put(defaultDisplayCrops.keyAt(i), defaultCrop);
                        updatedCropHints.put(orientation, defaultCrop);
                    }
                }
                wallpaper.mCropHints = updatedCropHints;