diff options
author | Michael Jurka <mikejurka@google.com> | 2013-08-22 16:01:17 +0200 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2013-08-22 16:01:17 +0200 |
commit | fbf25c19aa50f4bc2d3479b7ffb08609f2974e9e (patch) | |
tree | b5738ac920b83de1116aaf8f4b9c813af31efa4c /src/com/android/launcher3/WallpaperPickerActivity.java | |
parent | 2b931429dbf29633657f060151e5451522b44f15 (diff) | |
download | android_packages_apps_Trebuchet-fbf25c19aa50f4bc2d3479b7ffb08609f2974e9e.tar.gz android_packages_apps_Trebuchet-fbf25c19aa50f4bc2d3479b7ffb08609f2974e9e.tar.bz2 android_packages_apps_Trebuchet-fbf25c19aa50f4bc2d3479b7ffb08609f2974e9e.zip |
Disable zoom/pan for built-in wallpapers
Diffstat (limited to 'src/com/android/launcher3/WallpaperPickerActivity.java')
-rw-r--r-- | src/com/android/launcher3/WallpaperPickerActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/WallpaperPickerActivity.java b/src/com/android/launcher3/WallpaperPickerActivity.java index 03274213f..7c84c7fa6 100644 --- a/src/com/android/launcher3/WallpaperPickerActivity.java +++ b/src/com/android/launcher3/WallpaperPickerActivity.java @@ -95,9 +95,12 @@ public class WallpaperPickerActivity extends WallpaperCropActivity { } else if (meta.mGalleryImageUri != null) { mCropView.setTileSource(new BitmapRegionTileSource(WallpaperPickerActivity.this, meta.mGalleryImageUri, 1024, 0), null); + mCropView.setTouchEnabled(true); } else { mCropView.setTileSource(new BitmapRegionTileSource(WallpaperPickerActivity.this, meta.mWallpaperResId, 1024, 0), null); + mCropView.setTouchEnabled(false); + mCropView.moveToUpperLeft(); } } }; |