Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6d19995 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Relax user constraint on storage state.

Otherwise we wtf() when called various places in the system.

Bug: 11223886
Change-Id: I514d28603db02e3debd4af1cf20049af0c7399f4
parent c1c8f3f9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
    }

    /**