summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ViewImage.java
diff options
context:
space:
mode:
authorrepo sync <raychen@google.com>2009-06-17 11:44:04 +0800
committerrepo sync <raychen@google.com>2009-06-17 11:44:04 +0800
commit5f59cd962f311511f45452dc8c4428eb1ceaeabf (patch)
tree63343797429b93f88d598503564ceaa932124b37 /src/com/android/camera/ViewImage.java
parent39bd941436b516ca6c351463405247a08640151f (diff)
downloadLegacyCamera-5f59cd962f311511f45452dc8c4428eb1ceaeabf.zip
LegacyCamera-5f59cd962f311511f45452dc8c4428eb1ceaeabf.tar.gz
LegacyCamera-5f59cd962f311511f45452dc8c4428eb1ceaeabf.tar.bz2
Fix NPE in issues 1921957 & 1921062.
Diffstat (limited to 'src/com/android/camera/ViewImage.java')
-rw-r--r--src/com/android/camera/ViewImage.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/camera/ViewImage.java b/src/com/android/camera/ViewImage.java
index 0862af0..04b0f4a 100644
--- a/src/com/android/camera/ViewImage.java
+++ b/src/com/android/camera/ViewImage.java
@@ -425,8 +425,10 @@ public class ViewImage extends Activity implements View.OnClickListener {
protected Runnable mDeletePhotoRunnable = new Runnable() {
public void run() {
mAllImages.removeImageAt(mCurrentPosition);
- updateLastImage();
- mThumbController.updateDisplayIfNeeded();
+ if (mCameraReviewMode) {
+ updateLastImage();
+ mThumbController.updateDisplayIfNeeded();
+ }
if (mAllImages.getCount() == 0) {
finish();
} else {