From aaf1a71a9d05b407c26e6d2a7c6186b91ce5895b Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Tue, 27 Oct 2020 02:02:53 +0200 Subject: [PATCH] android: Fix takePersistableUriPermission() error on Android 10 Used wrong Intent ACTION Former-commit-id: 6a46248d5f9b977558b85ef4bab1939a5a08a9b3 Former-commit-id: dd086c794870474d8e4e49341bc868baae5c1696 --- platform/android/.idea/vcs.xml | 1 + .../com/mrmichel/rustdroid_emu/ui/library/RomListActivity.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/android/.idea/vcs.xml b/platform/android/.idea/vcs.xml index 2e3f692..3f1db62 100644 --- a/platform/android/.idea/vcs.xml +++ b/platform/android/.idea/vcs.xml @@ -1,6 +1,7 @@ + \ No newline at end of file diff --git a/platform/android/app/src/main/java/com/mrmichel/rustdroid_emu/ui/library/RomListActivity.java b/platform/android/app/src/main/java/com/mrmichel/rustdroid_emu/ui/library/RomListActivity.java index aa76fbf..9356150 100644 --- a/platform/android/app/src/main/java/com/mrmichel/rustdroid_emu/ui/library/RomListActivity.java +++ b/platform/android/app/src/main/java/com/mrmichel/rustdroid_emu/ui/library/RomListActivity.java @@ -246,7 +246,7 @@ public class RomListActivity extends AppCompatActivity { } void doImportRom() { - Intent intent = new Intent(Intent.ACTION_GET_CONTENT); + Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setType("*/*"); Log.d(TAG, "pressed import rom");