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

Commit 48c52bea authored by Michael Jurka's avatar Michael Jurka Committed by Android Git Automerger
Browse files

am bdac73fe: Merge "Fix default wallpaper dimensions" into klp-dev

* commit 'bdac73fe':
  Fix default wallpaper dimensions
parents 2e6eef65 bdac73fe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -138,12 +138,13 @@ public class WallpaperCropActivity extends Activity {
        windowManager.getDefaultDisplay().getCurrentSizeRange(minDims, maxDims);

        int maxDim = Math.max(maxDims.x, maxDims.y);
        final int minDim = Math.min(minDims.x, minDims.y);
        int minDim = Math.max(minDims.x, minDims.y);

        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) {
            Point realSize = new Point();
            windowManager.getDefaultDisplay().getRealSize(realSize);
            maxDim = Math.max(realSize.x, realSize.y);
            minDim = Math.min(realSize.x, realSize.y);
        }

        // We need to ensure that there is enough extra space in the wallpaper