Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 502bb657 authored by cketti's avatar cketti
Browse files

Don't use 'exit-early' pattern for non-error cases

parent 47a5401c
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -178,19 +178,19 @@ public class MessageContainerView extends LinearLayout implements OnLayoutChange
                            case MENU_ITEM_IMAGE_VIEW: {
                                if (inlineImage) {
                                    attachmentCallback.onViewAttachment(attachmentViewInfo);
                                    break;
                                }
                                } else {
                                    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
                                    startActivityIfAvailable(getContext(), intent);
                                }
                                break;
                            }
                            case MENU_ITEM_IMAGE_SAVE: {
                                if (inlineImage) {
                                    attachmentCallback.onSaveAttachment(attachmentViewInfo);
                                    break;
                                }
                                } else {
                                    //TODO: Use download manager
                                    new DownloadImageTask(getContext()).execute(uri.toString());
                                }
                                break;
                            }
                            case MENU_ITEM_IMAGE_COPY: {