Skip to content

Commit

Permalink
fix issue after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
RZulfikri committed Feb 20, 2019
1 parent 43c6810 commit 459b5f0
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ public void onTick(long millisUntilFinished) {
public void onFinish() {
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
String imageName = "IMG_" + timeStamp + ".jpg";
Intent returnIntent = new Intent();

if (isSDCARDMounted()) {
String folderName = "PhotoEditorSDK";
Expand All @@ -391,6 +392,7 @@ public void onFinish() {
}

String selectedOutputPath = mediaStorageDir.getPath() + File.separator + imageName;
returnIntent.putExtra("imagePath", selectedOutputPath);
Log.d("PhotoEditorSDK", "selected camera path " + selectedOutputPath);
File file = new File(selectedOutputPath);

Expand All @@ -408,7 +410,6 @@ public void onFinish() {
}
}

Intent returnIntent = new Intent();
setResult(Activity.RESULT_OK, returnIntent);
finish();
}
Expand Down Expand Up @@ -453,9 +454,6 @@ public void onFinish() {
var7.printStackTrace();
}

Intent returnIntent = new Intent();
setResult(Activity.RESULT_OK, returnIntent);

Intent returnIntent = new Intent();
returnIntent.putExtra("imagePath", newPath);
setResult(Activity.RESULT_OK, returnIntent);
Expand Down

0 comments on commit 459b5f0

Please sign in to comment.