mirror of
https://github.com/love2d/love-android.git
synced 2026-08-12 00:20:57 +02:00
LOVE Loader: Add missing FLAG_GRANT_READ_URI_PERMISSION flag.
This commit is contained in:
@@ -48,8 +48,10 @@ public class SelectorActivity extends AppCompatActivity {
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user