From 8f712114b6c6e62c3f1c23fdf3d75c13ce64d480 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 18 Jul 2020 11:37:41 +0200 Subject: [PATCH] Android: Use storage access framework for importing WADs This is part of my efforts to add support for scoped storage. I figured I would start with a relatively simple feature to make sure that everyone is fine with the approach I'm taking before I tackle more complicated features like the game list. --- .../dolphinemu/features/settings/ui/SettingsAdapter.java | 3 --- .../org/dolphinemu/dolphinemu/ui/main/MainActivity.java | 8 +++++--- .../org/dolphinemu/dolphinemu/ui/main/MainPresenter.java | 3 ++- .../org/dolphinemu/dolphinemu/ui/main/TvMainActivity.java | 8 +++++--- .../dolphinemu/dolphinemu/utils/FileBrowserHelper.java | 3 --- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsAdapter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsAdapter.java index 605c23854e..cbb54a4d45 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsAdapter.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsAdapter.java @@ -293,9 +293,6 @@ public final class SettingsAdapter extends RecyclerView.Adapter RAW_EXTENSION = new HashSet<>(Collections.singletonList( "raw")); - public static final HashSet WAD_EXTENSION = new HashSet<>(Collections.singletonList( - "wad")); - public static void openDirectoryPicker(FragmentActivity activity, HashSet extensions) { Intent i = new Intent(activity, CustomFilePickerActivity.class);