summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-08-10 18:53:23 (GMT)
committerSunny Goyal <sunnygoyal@google.com>2015-08-10 18:54:14 (GMT)
commitb33e09a93cda9793b84ec70e1d85c9038f5d3ee6 (patch)
treebdff21f4f6275be4869bc595634c8cab6531679d
parent99eceebfaae1071cde2cf05f2874b8d94795b43a (diff)
downloadandroid_packages_apps_Trebuchet-b33e09a93cda9793b84ec70e1d85c9038f5d3ee6.zip
android_packages_apps_Trebuchet-b33e09a93cda9793b84ec70e1d85c9038f5d3ee6.tar.gz
android_packages_apps_Trebuchet-b33e09a93cda9793b84ec70e1d85c9038f5d3ee6.tar.bz2
Preventing user from selecting any new time, when a tile is already being applied
Bug: 22293299 Change-Id: I6b9bf2b777d33ca23f291c7872ce1f338d41e516
-rw-r--r--WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java b/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
index c723b39..069638f 100644
--- a/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
+++ b/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
@@ -551,6 +551,10 @@ public class WallpaperPickerActivity extends WallpaperCropActivity {
@Override
public void onClick(View v) {
if (mSelectedTile != null) {
+ // Prevent user from selecting any new tile.
+ mWallpaperStrip.setVisibility(View.GONE);
+ actionBar.hide();
+
WallpaperTileInfo info = (WallpaperTileInfo) mSelectedTile.getTag();
info.onSave(WallpaperPickerActivity.this);
} else {