android: Fix takePersistableUriPermission() error on Android 10
Used wrong Intent ACTION Former-commit-id: 6a46248d5f9b977558b85ef4bab1939a5a08a9b3 Former-commit-id: dd086c794870474d8e4e49341bc868baae5c1696
This commit is contained in:
parent
efb1cdb4b6
commit
aaf1a71a9d
|
@ -1,6 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -246,7 +246,7 @@ public class RomListActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
void doImportRom() {
|
void doImportRom() {
|
||||||
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
|
||||||
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||||
intent.setType("*/*");
|
intent.setType("*/*");
|
||||||
Log.d(TAG, "pressed import rom");
|
Log.d(TAG, "pressed import rom");
|
||||||
|
|
Reference in a new issue