diff options
author | Chih-Chung Chang <chihchung@google.com> | 2009-06-24 15:14:33 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2009-06-24 15:14:33 +0800 |
commit | 0b803c0b817451e075243466022a137480338c35 (patch) | |
tree | 34579ff95f4bc24453ae2b81d4f6e5ab44cc32c7 /src/com/android/camera/ImageGallery.java | |
parent | e4794838a92b22154b6818cb8ffa8afa63f19a44 (diff) | |
download | LegacyCamera-0b803c0b817451e075243466022a137480338c35.zip LegacyCamera-0b803c0b817451e075243466022a137480338c35.tar.gz LegacyCamera-0b803c0b817451e075243466022a137480338c35.tar.bz2 |
Fix 1933301: NPE in ImageGallery.onImageClicked
Diffstat (limited to 'src/com/android/camera/ImageGallery.java')
-rw-r--r-- | src/com/android/camera/ImageGallery.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/ImageGallery.java b/src/com/android/camera/ImageGallery.java index beb0e57..bdac8d8 100644 --- a/src/com/android/camera/ImageGallery.java +++ b/src/com/android/camera/ImageGallery.java @@ -740,6 +740,7 @@ public class ImageGallery extends Activity implements menu.add(0, 0, 0, R.string.view).setOnMenuItemClickListener( new MenuItem.OnMenuItemClickListener() { public boolean onMenuItemClick(MenuItem item) { + if (!canHandleEvent()) return false; onImageClicked(mGvs.getCurrentSelection()); return true; } |