From 1e5fa022b1157a9fdac18978f178738958a2ebb7 Mon Sep 17 00:00:00 2001 From: seven332 Date: Tue, 24 May 2016 13:56:35 +0800 Subject: [PATCH] Avoid UnsupportedOperationException of MediaFile.exists --- app/src/main/java/com/hippo/nimingban/ui/GalleryActivity2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/hippo/nimingban/ui/GalleryActivity2.java b/app/src/main/java/com/hippo/nimingban/ui/GalleryActivity2.java index d9dd9b77..718e59a1 100644 --- a/app/src/main/java/com/hippo/nimingban/ui/GalleryActivity2.java +++ b/app/src/main/java/com/hippo/nimingban/ui/GalleryActivity2.java @@ -106,7 +106,7 @@ private boolean handlerIntent(Intent intent) { } else if (ACTION_IMAGE_FILE.equals(action)) { Uri fileUri = intent.getParcelableExtra(KEY_UNI_FILE_URI); UniFile file = UniFile.fromUri(this, fileUri); - if (file != null && file.exists()) { + if (file != null) { mGalleryAdapter = new ImageFileAdapter(file); return true; }