Skip to content

Commit

Permalink
refactored: eleminated CropAreaChooserBaseActivityEx.java
Browse files Browse the repository at this point in the history
  • Loading branch information
k3b committed Nov 6, 2019
1 parent 9d51a09 commit ba1e898
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ protected void onSaveEditPictureAsOutputUriPickerResult(Uri _outUri) {
protected Edit edit = new Edit();

protected class Send {
protected void onGetSendImage(Uri uri, Bundle savedInstanceState) {
SetImageUriAndLastCropArea(uri, savedInstanceState);
}

protected boolean sendPrivateCroppedImage() {
Uri outUri = cropToSharedUri();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Uri uri = getSourceImageUri(getIntent());

SetImageUriAndLastCropArea(uri, savedInstanceState);
send.onGetSendImage(uri, savedInstanceState);
}

@Override
Expand Down

0 comments on commit ba1e898

Please sign in to comment.