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

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

Merge "Small validation fix" into main

parents d1c99778 f2d67d01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3181,7 +3181,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
                    throw new IllegalArgumentException("Invalid crop rect supplied: " + crop);
                }
                int orientation = screenOrientations[i];
                if (orientation == ORIENTATION_UNKNOWN && cropMap.size() > 1) {
                if (orientation == ORIENTATION_UNKNOWN && crops.size() > 1) {
                    throw new IllegalArgumentException("Invalid crops supplied: the UNKNOWN"
                            + "screen orientation should only be used in a singleton map");
                }