do not display an error toast if the user leaves the editor with Back

This commit is contained in:
tibbi 2016-10-06 20:55:09 +02:00
parent a7f3bda7bd
commit 0005fb7e0c
2 changed files with 1 additions and 2 deletions

View file

@ -189,8 +189,6 @@ public class ViewPagerActivity extends SimpleActivity
if (resultCode == RESULT_OK && data != null) { if (resultCode == RESULT_OK && data != null) {
final MyPagerAdapter adapter = (MyPagerAdapter) mPager.getAdapter(); final MyPagerAdapter adapter = (MyPagerAdapter) mPager.getAdapter();
adapter.updateItems(mPos); adapter.updateItems(mPos);
} else {
Utils.showToast(getApplicationContext(), R.string.image_editing_failed);
} }
} }
super.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data);

View file

@ -66,6 +66,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
setResult(Activity.RESULT_OK, intent) setResult(Activity.RESULT_OK, intent)
} catch (e: Exception) { } catch (e: Exception) {
Log.e(TAG, "Crop compressing failed $e") Log.e(TAG, "Crop compressing failed $e")
toast(R.string.image_editing_failed)
} finally { } finally {
try { try {
out?.close() out?.close()