Disable zoom/pan for built-in wallpapers

This commit is contained in:
Michael Jurka committed 2013-08-22 16:01:17 +02:00
1 parent 2b931429db
commit fbf25c19aa
2 files changed
+59 -27

No files matched your search

@@ -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();
}
}
};