Prevent a false positive SecurityException for DocumentsProvider

This commit is contained in:
Abandoned Cart 2022-10-20 22:14:10 -04:00 committed by Mark Collins
parent 1ae36cea24
commit 267d25b5a5

View File

@ -245,7 +245,7 @@ class MainActivity : AppCompatActivity() {
if (preferenceSettings.selectAction) { if (preferenceSettings.selectAction) {
AppDialog.newInstance(appItem).show(supportFragmentManager, "game") AppDialog.newInstance(appItem).show(supportFragmentManager, "game")
} else if (appItem.loaderResult == LoaderResult.Success) { } 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) })
} }
} }