From ba1e8981148d016ae803b221d6df81567fe48de6 Mon Sep 17 00:00:00 2001 From: k3b <1374583+k3b@users.noreply.github.com> Date: Wed, 6 Nov 2019 01:11:31 +0100 Subject: [PATCH] refactored: eleminated CropAreaChooserBaseActivityEx.java --- .../lossless_jpg_crop/CropAreasChooseBaseActivity.java | 4 ++++ .../k3b/android/lossless_jpg_crop/CropAreasSendActivity.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/de/k3b/android/lossless_jpg_crop/CropAreasChooseBaseActivity.java b/app/src/main/java/de/k3b/android/lossless_jpg_crop/CropAreasChooseBaseActivity.java index 541587d..93da773 100644 --- a/app/src/main/java/de/k3b/android/lossless_jpg_crop/CropAreasChooseBaseActivity.java +++ b/app/src/main/java/de/k3b/android/lossless_jpg_crop/CropAreasChooseBaseActivity.java @@ -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(); diff --git a/app/src/main/java/de/k3b/android/lossless_jpg_crop/CropAreasSendActivity.java b/app/src/main/java/de/k3b/android/lossless_jpg_crop/CropAreasSendActivity.java index 52a2d43..28e98a8 100644 --- a/app/src/main/java/de/k3b/android/lossless_jpg_crop/CropAreasSendActivity.java +++ b/app/src/main/java/de/k3b/android/lossless_jpg_crop/CropAreasSendActivity.java @@ -20,7 +20,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Uri uri = getSourceImageUri(getIntent()); - SetImageUriAndLastCropArea(uri, savedInstanceState); + send.onGetSendImage(uri, savedInstanceState); } @Override