diff options
-rw-r--r-- | src/com/android/camera/ImageGallery.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/camera/ImageGallery.java b/src/com/android/camera/ImageGallery.java index c1603b6..2e26d77 100644 --- a/src/com/android/camera/ImageGallery.java +++ b/src/com/android/camera/ImageGallery.java @@ -168,6 +168,9 @@ public class ImageGallery extends Activity implements } public boolean onSlideShowClicked() { + if (!canHandleEvent()) { + return false; + } IImage img = getCurrentImage(); if (img == null) { img = mAllImages.getImageAt(0); @@ -766,6 +769,9 @@ public class ImageGallery extends Activity implements mDeletePhotoRunnable, new MenuHelper.MenuInvoker() { public void run(MenuHelper.MenuCallback cb) { + if (!canHandleEvent()) { + return; + } cb.run(getCurrentImageUri(), getCurrentImage()); mGvs.stop(); mGvs.setImageList(mAllImages); |