From 267d25b5a575ec34a238d5fb1cb3f916d107f54d Mon Sep 17 00:00:00 2001 From: Abandoned Cart Date: Thu, 20 Oct 2022 22:14:10 -0400 Subject: [PATCH] Prevent a false positive `SecurityException` for DocumentsProvider --- app/src/main/java/emu/skyline/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/emu/skyline/MainActivity.kt b/app/src/main/java/emu/skyline/MainActivity.kt index 21d164c1..b45551c9 100644 --- a/app/src/main/java/emu/skyline/MainActivity.kt +++ b/app/src/main/java/emu/skyline/MainActivity.kt @@ -245,7 +245,7 @@ class MainActivity : AppCompatActivity() { if (preferenceSettings.selectAction) { AppDialog.newInstance(appItem).show(supportFragmentManager, "game") } else if (appItem.loaderResult == LoaderResult.Success) { - startActivity(Intent(this, EmulationActivity::class.java).apply { data = appItem.uri; putExtra(EmulationActivity.ReturnToMainTag, true) }) + startActivity(Intent(this, EmulationActivity::class.java).apply { data = appItem.uri; putExtra(EmulationActivity.ReturnToMainTag, true); addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) }) } }