1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-19 20:21:45 -05:00

Fix code style

This commit is contained in:
cketti 2015-02-06 19:57:30 +01:00
parent fce12b2450
commit 3377e50352

View File

@ -1,18 +1,16 @@
package com.fsck.k9.mailstore; package com.fsck.k9.mailstore;
import android.app.PendingIntent;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import android.app.PendingIntent;
import com.fsck.k9.mail.Message; import com.fsck.k9.mail.Message;
import org.openintents.openpgp.OpenPgpError; import org.openintents.openpgp.OpenPgpError;
import org.openintents.openpgp.OpenPgpSignatureResult; import org.openintents.openpgp.OpenPgpSignatureResult;
public class MessageViewInfo { public class MessageViewInfo {
public final Message message; public final Message message;
public final List<MessageViewContainer> containers; public final List<MessageViewContainer> containers;
@ -22,27 +20,21 @@ public class MessageViewInfo {
this.message = message; this.message = message;
} }
public static class MessageViewContainer {
final public String text; public static class MessageViewContainer {
final public List<AttachmentViewInfo> attachments; public final String text;
final public boolean encrypted; public final List<AttachmentViewInfo> attachments;
final public OpenPgpSignatureResult signatureResult; public final boolean encrypted;
final public OpenPgpError pgpError; public final OpenPgpSignatureResult signatureResult;
final public PendingIntent pgpPendingIntent; public final OpenPgpError pgpError;
public final PendingIntent pgpPendingIntent;
MessageViewContainer(String text, List<AttachmentViewInfo> attachments) { MessageViewContainer(String text, List<AttachmentViewInfo> attachments) {
this.text = text; this(text, attachments, null, null, false, null);
this.attachments = attachments;
this.signatureResult = null;
this.pgpError = null;
this.encrypted = false;
this.pgpPendingIntent = null;
} }
MessageViewContainer(String text, List<AttachmentViewInfo> attachments, MessageViewContainer(String text, List<AttachmentViewInfo> attachments, OpenPgpSignatureResult signatureResult,
OpenPgpSignatureResult signatureResult, OpenPgpError pgpError, OpenPgpError pgpError, boolean encrypted, PendingIntent pgpPendingIntent) {
boolean encrypted, PendingIntent pgpPendingIntent) {
this.text = text; this.text = text;
this.attachments = attachments; this.attachments = attachments;
this.signatureResult = signatureResult; this.signatureResult = signatureResult;
@ -50,7 +42,5 @@ public class MessageViewInfo {
this.encrypted = encrypted; this.encrypted = encrypted;
this.pgpPendingIntent = pgpPendingIntent; this.pgpPendingIntent = pgpPendingIntent;
} }
} }
} }