mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Refactor code; no functional changes
This commit is contained in:
parent
3377e50352
commit
49c4115e46
@ -448,18 +448,20 @@ public class LocalMessageExtractor {
|
||||
attachments);
|
||||
List<AttachmentViewInfo> attachmentInfos = extractAttachmentInfos(context, attachments);
|
||||
|
||||
if (pgpAnnotation != NO_ANNOTATIONS) {
|
||||
MessageViewContainer messageViewContainer;
|
||||
if (pgpAnnotation == NO_ANNOTATIONS) {
|
||||
messageViewContainer = new MessageViewContainer(viewable.html, attachmentInfos);
|
||||
} else {
|
||||
OpenPgpSignatureResult pgpResult = pgpAnnotation.getSignatureResult();
|
||||
OpenPgpError pgpError = pgpAnnotation.getError();
|
||||
boolean wasEncrypted = pgpAnnotation.wasEncrypted();
|
||||
PendingIntent pendingIntent = pgpAnnotation.getPendingIntent();
|
||||
|
||||
containers.add(new MessageViewContainer(
|
||||
viewable.html, attachmentInfos, pgpResult, pgpError, wasEncrypted, pendingIntent));
|
||||
} else {
|
||||
containers.add(new MessageViewContainer(viewable.html, attachmentInfos));
|
||||
messageViewContainer = new MessageViewContainer(viewable.html, attachmentInfos, pgpResult, pgpError,
|
||||
wasEncrypted, pendingIntent);
|
||||
}
|
||||
|
||||
containers.add(messageViewContainer);
|
||||
}
|
||||
|
||||
return new MessageViewInfo(containers, message);
|
||||
|
Loading…
Reference in New Issue
Block a user