summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2013-09-20 04:32:20 +0200
committerMichael Jurka <mikejurka@google.com>2013-09-20 04:32:20 +0200
commit8b4836085b928f0ada3b3e6e1d1fd0530ffd6d57 (patch)
tree81697a64b0f13791f4d0cd778f56e7e3c555b0b6 /packages
parenta2d65108dd32a0836fe08f0c72efdd5c727dad44 (diff)
downloadframeworks_base-8b4836085b928f0ada3b3e6e1d1fd0530ffd6d57.zip
frameworks_base-8b4836085b928f0ada3b3e6e1d1fd0530ffd6d57.tar.gz
frameworks_base-8b4836085b928f0ada3b3e6e1d1fd0530ffd6d57.tar.bz2
Fix default wallpaper dimensions
Bug: 10834711
Diffstat (limited to 'packages')
-rw-r--r--packages/WallpaperCropper/src/com/android/wallpapercropper/WallpaperCropActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/WallpaperCropper/src/com/android/wallpapercropper/WallpaperCropActivity.java b/packages/WallpaperCropper/src/com/android/wallpapercropper/WallpaperCropActivity.java
index a993ed3..af48652 100644
--- a/packages/WallpaperCropper/src/com/android/wallpapercropper/WallpaperCropActivity.java
+++ b/packages/WallpaperCropper/src/com/android/wallpapercropper/WallpaperCropActivity.java
@@ -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