Merge "Ensure that crop view is loaded before applying a wallpaper" into ub-launcher3-burnaby

This commit is contained in:
Sunny Goyal
2015-08-12 23:58:05 +00:00
committed by Android (Google) Code Review
@@ -550,7 +550,8 @@ public class WallpaperPickerActivity extends WallpaperCropActivity {
new View.OnClickListener() {
@Override
public void onClick(View v) {
if (mSelectedTile != null) {
// Ensure that a tile is slelected and loaded.
if (mSelectedTile != null && mCropView.getTileSource() != null) {
// Prevent user from selecting any new tile.
mWallpaperStrip.setVisibility(View.GONE);
actionBar.hide();