diff options
author | John Reck <jreck@google.com> | 2011-06-10 15:14:23 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-06-10 15:14:52 -0700 |
commit | 8549365bc3e7fe5af07f687286404dbcc3553815 (patch) | |
tree | 35dc7704e904bc0b6110e25a488d9b680bde4fc3 | |
parent | fc6c49bdda8d5d6a6cddedba9a1908bc2a58d2c1 (diff) | |
download | packages_apps_Browser-8549365bc3e7fe5af07f687286404dbcc3553815.zip packages_apps_Browser-8549365bc3e7fe5af07f687286404dbcc3553815.tar.gz packages_apps_Browser-8549365bc3e7fe5af07f687286404dbcc3553815.tar.bz2 |
Guard against menu onclick being called twice
Bug: 4375496
Change-Id: Id1523ce179bcd4a5f66065109e3dd97d0a8f9ff4
-rw-r--r-- | src/com/android/browser/WallpaperHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/WallpaperHandler.java b/src/com/android/browser/WallpaperHandler.java index 2cb223a..cd896da 100644 --- a/src/com/android/browser/WallpaperHandler.java +++ b/src/com/android/browser/WallpaperHandler.java @@ -68,7 +68,7 @@ public class WallpaperHandler extends Thread @Override public boolean onMenuItemClick(MenuItem item) { - if (mUrl != null) { + if (mUrl != null && getState() == State.NEW) { // The user may have tried to set a image with a large file size as // their background so it may take a few moments to perform the // operation. |