diff options
author | Owen Lin <owenlin@android.com> | 2010-02-24 21:30:05 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-02-24 21:30:05 -0800 |
commit | e7a53d0c5c3b8434e7ee8b92072ec8c47fe12cdb (patch) | |
tree | 2f095b43d181abafbe48431bf4a3e8d77b8086a2 /src/com/android/camera/Camera.java | |
parent | b6be8b6567cc7d758ce58bc8ba1b05e1e9debfae (diff) | |
parent | 6d35fde323778d8e1725e399c80503061c200e16 (diff) | |
download | LegacyCamera-e7a53d0c5c3b8434e7ee8b92072ec8c47fe12cdb.zip LegacyCamera-e7a53d0c5c3b8434e7ee8b92072ec8c47fe12cdb.tar.gz LegacyCamera-e7a53d0c5c3b8434e7ee8b92072ec8c47fe12cdb.tar.bz2 |
Merge "Fix the no "SD Card is full" bug. Now, we show the error message when we find out the storage may be not enough for next picture."
Diffstat (limited to 'src/com/android/camera/Camera.java')
-rw-r--r-- | src/com/android/camera/Camera.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index 0b1155e..cbb6aa1 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -673,6 +673,10 @@ public class Camera extends NoSearchActivity implements View.OnClickListener, // the mean time and fill it, but that could have happened between the // shutter press and saving the JPEG too. calculatePicturesRemaining(); + + if (mPicturesRemaining < 1) { + updateStorageHint(mPicturesRemaining); + } } } @@ -868,14 +872,6 @@ public class Camera extends NoSearchActivity implements View.OnClickListener, mCaptureStartTime = System.currentTimeMillis(); mPostViewPictureCallbackTime = 0; - // Don't check the filesystem here, we can't afford the latency. - // Instead, check the cached value which was calculated when the - // preview was restarted. - if (mPicturesRemaining < 1) { - updateStorageHint(mPicturesRemaining); - return; - } - mStatus = SNAPSHOT_IN_PROGRESS; mImageCapture.initiate(); |