From 3377e50352efae1950cd9c6372998c2a9845becd Mon Sep 17 00:00:00 2001 From: cketti Date: Fri, 6 Feb 2015 19:57:30 +0100 Subject: [PATCH] Fix code style --- .../fsck/k9/mailstore/MessageViewInfo.java | 34 +++++++------------ 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/k9mail/src/main/java/com/fsck/k9/mailstore/MessageViewInfo.java b/k9mail/src/main/java/com/fsck/k9/mailstore/MessageViewInfo.java index 71fc55bea..ac6f0f2f5 100644 --- a/k9mail/src/main/java/com/fsck/k9/mailstore/MessageViewInfo.java +++ b/k9mail/src/main/java/com/fsck/k9/mailstore/MessageViewInfo.java @@ -1,18 +1,16 @@ package com.fsck.k9.mailstore; -import android.app.PendingIntent; - -import java.util.ArrayList; import java.util.List; +import android.app.PendingIntent; + import com.fsck.k9.mail.Message; import org.openintents.openpgp.OpenPgpError; import org.openintents.openpgp.OpenPgpSignatureResult; public class MessageViewInfo { - public final Message message; public final List containers; @@ -22,27 +20,21 @@ public class MessageViewInfo { this.message = message; } - public static class MessageViewContainer { - final public String text; - final public List attachments; - final public boolean encrypted; - final public OpenPgpSignatureResult signatureResult; - final public OpenPgpError pgpError; - final public PendingIntent pgpPendingIntent; + public static class MessageViewContainer { + public final String text; + public final List attachments; + public final boolean encrypted; + public final OpenPgpSignatureResult signatureResult; + public final OpenPgpError pgpError; + public final PendingIntent pgpPendingIntent; MessageViewContainer(String text, List attachments) { - this.text = text; - this.attachments = attachments; - this.signatureResult = null; - this.pgpError = null; - this.encrypted = false; - this.pgpPendingIntent = null; + this(text, attachments, null, null, false, null); } - MessageViewContainer(String text, List attachments, - OpenPgpSignatureResult signatureResult, OpenPgpError pgpError, - boolean encrypted, PendingIntent pgpPendingIntent) { + MessageViewContainer(String text, List attachments, OpenPgpSignatureResult signatureResult, + OpenPgpError pgpError, boolean encrypted, PendingIntent pgpPendingIntent) { this.text = text; this.attachments = attachments; this.signatureResult = signatureResult; @@ -50,7 +42,5 @@ public class MessageViewInfo { this.encrypted = encrypted; this.pgpPendingIntent = pgpPendingIntent; } - } - }