Use new onSaveImageError() method for readability.

This commit is contained in:
akwizgran
2022-04-18 13:33:09 +01:00
parent bc013296f6
commit 961af66c8e

View File

@@ -180,7 +180,7 @@ public class ImageViewModel extends DbViewModel implements EventListener {
@UiThread @UiThread
void saveImage(AttachmentItem attachment, @Nullable Uri uri) { void saveImage(AttachmentItem attachment, @Nullable Uri uri) {
if (uri == null) { if (uri == null) {
saveState.setEvent(true); onSaveImageError();
} else { } else {
saveImage(attachment, () -> getOutputStream(uri), null); saveImage(attachment, () -> getOutputStream(uri), null);
} }