summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ImageManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/ImageManager.java')
-rwxr-xr-xsrc/com/android/camera/ImageManager.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/camera/ImageManager.java b/src/com/android/camera/ImageManager.java
index 99e5366..6c3472b 100755
--- a/src/com/android/camera/ImageManager.java
+++ b/src/com/android/camera/ImageManager.java
@@ -73,7 +73,7 @@ public class ImageManager {
public static String getBucketId(String path) {
return String.valueOf(path.toLowerCase().hashCode());
}
-
+
/**
* OSX requires plugged-in USB storage to have path /DCIM/NNNAAAAA to be imported.
* This is a temporary fix for bug#1655552.
@@ -4123,12 +4123,14 @@ public class ImageManager {
}
static public boolean hasStorage(boolean requireWriteAccess) {
+ //TODO: After fix the bug, add "if (VERBOSE)" before logging errors.
String state = Environment.getExternalStorageState();
- if (VERBOSE) Log.v(TAG, "state is " + state);
+ Log.v(TAG, "storage state is " + state);
+
if (Environment.MEDIA_MOUNTED.equals(state)) {
if (requireWriteAccess) {
boolean writable = checkFsWritable();
- if (VERBOSE) Log.v(TAG, "writable is " + writable);
+ Log.v(TAG, "storage writable is " + writable);
return writable;
} else {
return true;