Disable zoom/pan for built-in wallpapers

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

View File

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