- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
32 lines
726 B
Java
32 lines
726 B
Java
package androidx.core.os;
|
|
|
|
import android.os.Environment;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RequiresApi;
|
|
import java.io.File;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class EnvironmentCompat {
|
|
|
|
@Deprecated
|
|
public static final String MEDIA_UNKNOWN = "unknown";
|
|
|
|
@NonNull
|
|
public static String getStorageState(@NonNull File file) {
|
|
return Api21Impl.getExternalStorageState(file);
|
|
}
|
|
|
|
private EnvironmentCompat() {
|
|
}
|
|
|
|
@RequiresApi(21)
|
|
public static class Api21Impl {
|
|
private Api21Impl() {
|
|
}
|
|
|
|
public static String getExternalStorageState(File file) {
|
|
return Environment.getExternalStorageState(file);
|
|
}
|
|
}
|
|
}
|