Skip to content

Commit

Permalink
Closes #739
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantcheese committed Feb 26, 2020
1 parent 8ad823d commit 3f0d1c4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ public boolean onActivityResult(int requestCode, int resultCode, Intent data) {
Cursor returnCursor = activity.getContentResolver().query(uri, null, null, null, null);
if (returnCursor != null) {
int nameIndex = returnCursor.getColumnIndex(OpenableColumns.DISPLAY_NAME);
returnCursor.moveToFirst();
if (nameIndex > -1) {
if (nameIndex > -1 && returnCursor.moveToFirst()) {
fileName = returnCursor.getString(nameIndex);
}

Expand Down

0 comments on commit 3f0d1c4

Please sign in to comment.