From 8a3d635cdb2a32feff5fb57f65b8469e48f74152 Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Sat, 23 Dec 2023 12:58:55 +0800 Subject: [PATCH] LOVE Loader: Add missing FLAG_GRANT_READ_URI_PERMISSION flag. --- love/src/normal/java/org/love2d/android/SelectorActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/love/src/normal/java/org/love2d/android/SelectorActivity.java b/love/src/normal/java/org/love2d/android/SelectorActivity.java index b354e11c..12effe64 100644 --- a/love/src/normal/java/org/love2d/android/SelectorActivity.java +++ b/love/src/normal/java/org/love2d/android/SelectorActivity.java @@ -48,8 +48,10 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { new ActivityResultContracts.OpenDocument(), (Uri result) -> { if (result != null) { + Intent intent = new Intent(SelectorActivity.this, GameActivity.class); intent.setData(result); + intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); startActivity(intent); }