Disable zoom/pan for built-in wallpapers
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user