summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2013-09-19 20:51:11 +0200
committerMichael Jurka <mikejurka@google.com>2013-09-19 20:51:11 +0200
commit88f33511b8f84521aeb285114b70ccb938d1bf81 (patch)
tree793bc61a7f1df8e60123f9cd0c652a0fb2e15cc6 /src
parentb94f3f804f3954666c73e0564391444ec77dc4d4 (diff)
downloadandroid_packages_apps_Trebuchet-88f33511b8f84521aeb285114b70ccb938d1bf81.tar.gz
android_packages_apps_Trebuchet-88f33511b8f84521aeb285114b70ccb938d1bf81.tar.bz2
android_packages_apps_Trebuchet-88f33511b8f84521aeb285114b70ccb938d1bf81.zip
Fix default wallpaper dimensions
Bug: 10834711
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/WallpaperCropActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/WallpaperCropActivity.java b/src/com/android/launcher3/WallpaperCropActivity.java
index f5a6b80b3..f35948058 100644
--- a/src/com/android/launcher3/WallpaperCropActivity.java
+++ b/src/com/android/launcher3/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