Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment