summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-06-10 15:14:23 -0700
committerJohn Reck <jreck@google.com>2011-06-10 15:14:52 -0700
commit8549365bc3e7fe5af07f687286404dbcc3553815 (patch)
tree35dc7704e904bc0b6110e25a488d9b680bde4fc3
parentfc6c49bdda8d5d6a6cddedba9a1908bc2a58d2c1 (diff)
downloadpackages_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.java2
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.