Skip to content

Commit

Permalink
Selecting a single image from Google Photos does not work miguelpruiv…
Browse files Browse the repository at this point in the history
  • Loading branch information
Boehrsi committed Mar 21, 2019
1 parent 43796d2 commit a3fcfc0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ public boolean onActivityResult(int requestCode, int resultCode, Intent data) {
Log.i(TAG, "[MultiFilePick] File #" + currentItem + " - URI: " +currentUri.getPath());
currentItem++;
}
result.success(paths);
if (!isMultipleSelection) {
Log.i(TAG, "[MultiFilePick] isMultipleSelection is false. Returning first list item as String.");
result.success(paths.get(0));
} else {
result.success(paths);
}
} else if (data != null) {
Uri uri = data.getData();
Log.i(TAG, "[SingleFilePick] File URI:" +data.getData().toString());
Expand Down

0 comments on commit a3fcfc0

Please sign in to comment.