summaryrefslogtreecommitdiff
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2013-09-25 13:00:08 -0700
committerAngus Kong <shkong@google.com>2013-09-25 14:06:32 -0700
commit2dcc0a9dfcc23f090bbe36308f92d72f68c4f0a2 (patch)
treed589b18a2e9cc30183ed90bc47e54f85fdaf72ae /src/com/android/camera/VideoModule.java
parentb998a491a5b24e710bc1711dbb00cbfa05273bf2 (diff)
Checks for low storage in wide-angle pano mode.
1. Storage.LOW_STORAGE_THRESHOLD -> Storage.LOW_STORAGE_THRESHOLD_BYTE. 2. Checks for low storage before start preview in wide-angle pano mode. 3. Add low storage warning message for debugging when in wide-angle pano mode. bug:10691367 Change-Id: Iffd96d322b33591c8f235fcf5680e86cf0f06571
Diffstat (limited to 'src/com/android/camera/VideoModule.java')
-rw-r--r--src/com/android/camera/VideoModule.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index d6c88576..b8b3fcf9 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1001,7 +1001,7 @@ public class VideoModule implements CameraModule,
}
// Set maximum file size.
- long maxFileSize = mActivity.getStorageSpace() - Storage.LOW_STORAGE_THRESHOLD;
+ long maxFileSize = mActivity.getStorageSpaceBytes() - Storage.LOW_STORAGE_THRESHOLD_BYTES;
if (requestedSizeLimit > 0 && requestedSizeLimit < maxFileSize) {
maxFileSize = requestedSizeLimit;
}
@@ -1182,7 +1182,7 @@ public class VideoModule implements CameraModule,
mUI.setSwipingEnabled(false);
mActivity.updateStorageSpaceAndHint();
- if (mActivity.getStorageSpace() <= Storage.LOW_STORAGE_THRESHOLD) {
+ if (mActivity.getStorageSpaceBytes() <= Storage.LOW_STORAGE_THRESHOLD_BYTES) {
Log.v(TAG, "Storage issue, ignore the start request");
return;
}