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

Commit 757c7394 authored by Christopher R. Palmer's avatar Christopher R. Palmer Committed by Gerrit Code Review
Browse files

base: Fix array bounds exception in getSecondaryStorageState

Fix this to use the correct helper function.

Change-Id: I597e2895ee560681caa7dee95fd6b4cf17b5bcce
parent 1dfc43a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -755,7 +755,7 @@ public class Environment {

    /** @hide */
    public static String getSecondaryStorageState() {
        final File externalDir = sCurrentUser.getExternalDirsForApp()[1];
        final File externalDir = getSecondaryStorageDirectory();
        return getStorageState(externalDir);
    }