Avoid duplicate URI references, Favor overly permissive
This commit is contained in:
parent
6db2f3999f
commit
4a3bec95f8
|
@ -265,7 +265,8 @@ public class MainActivity extends AppCompatActivity implements
|
|||
Intent intent = new Intent("com.reicast.EMULATOR",
|
||||
uri, getApplicationContext(), GL2JNIActivity.class);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION
|
||||
| Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths>
|
||||
<files-path name="files_root" path="."/>
|
||||
<external-path name="external_files" path="."/>
|
||||
<external-path name="external_root" path="."/>
|
||||
<root-path name="external_files" path="/storage/" />
|
||||
</paths>
|
Loading…
Reference in New Issue