Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
Avoid UnsupportedOperationException of MediaFile.exists
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed May 24, 2016
1 parent 9582e7c commit 1e5fa02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1e5fa02

Please sign in to comment.