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

Commit

Permalink
fix formatting before merge
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaccetta committed Jun 11, 2018
1 parent 270a32f commit 8ab48f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
class FileUtils {

String getPathFromUri(final Context context, final Uri uri) {
//Try to retrieve path on device
String path = getPathFromLocalUri(context, uri);
if (path == null) {
//try to retrieve path from remote uri
path = getPathFromRemoteUri(context, uri);
}
return path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ public boolean onActivityResult(int requestCode, int resultCode, Intent data) {
}

private void handleChoosePictureResult(int resultCode, Intent data) {
if (resultCode == Activity.RESULT_OK && data != null && data.getData() != null) {
//Extract the file path from the uri.
if (resultCode == Activity.RESULT_OK && data != null) {
String path = fileUtils.getPathFromUri(activity, data.getData());
handleResult(path);
return;
Expand Down

0 comments on commit 8ab48f3

Please sign in to comment.