Skip to content

Commit

Permalink
LOVE Loader: Add missing FLAG_GRANT_READ_URI_PERMISSION flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Dec 23, 2023
1 parent a81931b commit 8a3d635
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions love/src/normal/java/org/love2d/android/SelectorActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8a3d635

Please sign in to comment.