Show better message to users if camera fails to access sdcard.
Also print the exception if sdcard access fails.
bug:2713104
Change-Id: I35a553ee75a49398582b587755d097b02b144015
diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java
index 1c8f0fa..e07f4f0 100644
--- a/src/com/android/camera/MenuHelper.java
+++ b/src/com/android/camera/MenuHelper.java
@@ -201,6 +201,7 @@
// if we can't stat the filesystem then we don't know how many
// pictures are remaining. it might be zero but just leave it
// blank since we really don't know.
+ Log.e(TAG, "Fail to access sdcard", ex);
return CANNOT_STAT_ERROR;
}
}