mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
do not display an error toast if the user leaves the editor with Back
This commit is contained in:
parent
a7f3bda7bd
commit
0005fb7e0c
2 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue