Loading app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/AttachmentPresenter.java +8 −3 Original line number Diff line number Diff line Loading @@ -299,9 +299,14 @@ public class AttachmentPresenter { return; } if (attachment.state == LoadingState.METADATA) { attachmentMvpView.updateAttachmentView(attachment); attachments.put(attachment.uri, attachment); initAttachmentContentLoader(attachment); } else { attachments.remove(attachment.uri); attachmentMvpView.removeAttachmentView(attachment); } } @Override Loading app/ui/legacy/src/main/java/com/fsck/k9/activity/misc/Attachment.java +0 −3 Original line number Diff line number Diff line Loading @@ -156,9 +156,6 @@ public class Attachment implements Parcelable, com.fsck.k9.message.Attachment { } public Attachment deriveWithLoadCancelled() { if (state != Attachment.LoadingState.METADATA) { throw new IllegalStateException("deriveWitLoadCancelled can only be called on a METADATA attachment!"); } return new Attachment(uri, Attachment.LoadingState.CANCELLED, loaderId, contentType, allowMessageType, name, size, null, internalAttachment); } Loading Loading
app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/AttachmentPresenter.java +8 −3 Original line number Diff line number Diff line Loading @@ -299,9 +299,14 @@ public class AttachmentPresenter { return; } if (attachment.state == LoadingState.METADATA) { attachmentMvpView.updateAttachmentView(attachment); attachments.put(attachment.uri, attachment); initAttachmentContentLoader(attachment); } else { attachments.remove(attachment.uri); attachmentMvpView.removeAttachmentView(attachment); } } @Override Loading
app/ui/legacy/src/main/java/com/fsck/k9/activity/misc/Attachment.java +0 −3 Original line number Diff line number Diff line Loading @@ -156,9 +156,6 @@ public class Attachment implements Parcelable, com.fsck.k9.message.Attachment { } public Attachment deriveWithLoadCancelled() { if (state != Attachment.LoadingState.METADATA) { throw new IllegalStateException("deriveWitLoadCancelled can only be called on a METADATA attachment!"); } return new Attachment(uri, Attachment.LoadingState.CANCELLED, loaderId, contentType, allowMessageType, name, size, null, internalAttachment); } Loading