mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 10:13:43 +01:00
1 parent
1b6857751e
commit
8fe3dcdb83
1 file changed
+6
-1
@@ -44,7 +44,12 @@ public class DocumentResultProxyActivity extends AppCompatActivity {
|
||||
|
||||
String resultPath = null;
|
||||
if (result.getResultCode() == Activity.RESULT_OK && result.getData() != null) {
|
||||
Uri uri = result.getData().getData();
|
||||
Intent data = result.getData();
|
||||
Uri uri = data.getData();
|
||||
if (uri == null && data.getClipData() != null && data.getClipData().getItemCount() > 0) {
|
||||
uri = data.getClipData().getItemAt(0).getUri();
|
||||
}
|
||||
|
||||
if (uri != null) {
|
||||
Log.i(TAG, "DocumentResultProxy: Selected URI: " + uri);
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user