Merge "Relax user constraint on storage state." into klp-dev

This commit is contained in:
Jeff Sharkey
2013-10-15 00:25:23 +00:00
committed by Android (Google) Code Review

View File

@@ -686,7 +686,8 @@ public class Environment {
* {@link #MEDIA_BAD_REMOVAL}, or {@link #MEDIA_UNMOUNTABLE}.
*/
public static String getExternalStorageState() {
return getStorageState(getExternalStorageDirectory());
final File externalDir = sCurrentUser.getExternalDirsForApp()[0];
return getStorageState(externalDir);
}
/**