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

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

Merge "Load orientationWhenSet from disk" into main

parents 16619e7a e1fa07c2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -336,6 +336,9 @@ public class WallpaperDataParser {
                        parser.getAttributeInt(null, "cropRight" + pair.second, 0),
                        parser.getAttributeInt(null, "cropBottom" + pair.second, 0));
                if (!cropHint.isEmpty()) wallpaper.mCropHints.put(pair.first, cropHint);
                if (!cropHint.isEmpty() && cropHint.equals(legacyCropHint)) {
                    wallpaper.mOrientationWhenSet = pair.first;
                }
            }
            if (wallpaper.mCropHints.size() == 0 && totalCropHint.isEmpty()) {
                // migration case: the crops per screen orientation are not specified.