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

Commit 70ee3ca6 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Environment.isExternalStorageRemovable() is false if external storage is emulated



Change-Id: Ib1afe83e4295d8304b65e822edd0dfa1591a5be7
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 897f894e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -416,6 +416,7 @@ public class Environment {
     * <p>See {@link #getExternalStorageDirectory()} for more information.
     */
    public static boolean isExternalStorageRemovable() {
        if (isExternalStorageEmulated()) return false;
        return Resources.getSystem().getBoolean(
                com.android.internal.R.bool.config_externalStorageRemovable);
    }