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); }