do not display an error toast if the user leaves the editor with Back
This commit is contained in:
parent
a7f3bda7bd
commit
0005fb7e0c
|
@ -189,8 +189,6 @@ public class ViewPagerActivity extends SimpleActivity
|
|||
if (resultCode == RESULT_OK && data != null) {
|
||||
final MyPagerAdapter adapter = (MyPagerAdapter) mPager.getAdapter();
|
||||
adapter.updateItems(mPos);
|
||||
} else {
|
||||
Utils.showToast(getApplicationContext(), R.string.image_editing_failed);
|
||||
}
|
||||
}
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
|
|
|
@ -66,6 +66,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||
setResult(Activity.RESULT_OK, intent)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Crop compressing failed $e")
|
||||
toast(R.string.image_editing_failed)
|
||||
} finally {
|
||||
try {
|
||||
out?.close()
|
||||
|
|
Loading…
Reference in New Issue