* commit '16c4b8c5999b4365bde5ad7c2f00337cee988dab': Relax user constraint on storage state.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user