// 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);
+ }
}
}
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();