Small layout improvement

This commit is contained in:
M66B 2022-01-08 14:03:13 +01:00
parent f0cf46db94
commit 98d5b95092
2 changed files with 4 additions and 3 deletions

View File

@ -2255,7 +2255,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
message.headers, message.blocklist != null && message.blocklist); message.headers, message.blocklist != null && message.blocklist);
if (BuildConfig.DEBUG && headers instanceof SpannableStringBuilder) { if (BuildConfig.DEBUG && headers instanceof SpannableStringBuilder) {
SpannableStringBuilder ssb = (SpannableStringBuilder) headers; SpannableStringBuilder ssb = (SpannableStringBuilder) headers;
ssb.append("TLS=" + message.tls) ssb.append('\n')
.append("TLS=" + message.tls)
.append(" DKIM=" + message.dkim) .append(" DKIM=" + message.dkim)
.append(" SPF=" + message.spf) .append(" SPF=" + message.spf)
.append(" DMARC=" + message.dmarc) .append(" DMARC=" + message.dmarc)

View File

@ -2400,8 +2400,8 @@ public class HtmlHelper {
ByteArrayInputStream bis = new ByteArrayInputStream(headers.getBytes()); ByteArrayInputStream bis = new ByteArrayInputStream(headers.getBytes());
String[] received = new InternetHeaders(bis).getHeader("Received"); String[] received = new InternetHeaders(bis).getHeader("Received");
if (received != null && received.length > 0) { if (received != null && received.length > 0) {
ssb.append('\n');
for (int i = received.length - 1; i >= 0; i--) { for (int i = received.length - 1; i >= 0; i--) {
ssb.append('\n');
String h = MimeUtility.unfold(received[i]); String h = MimeUtility.unfold(received[i]);
int semi = h.lastIndexOf(';'); int semi = h.lastIndexOf(';');
@ -2470,7 +2470,7 @@ public class HtmlHelper {
if (tls != null) if (tls != null)
ssb.setSpan(new ForegroundColorSpan(tls ? colorVerified : colorWarning), t, ssb.length(), 0); ssb.setSpan(new ForegroundColorSpan(tls ? colorVerified : colorWarning), t, ssb.length(), 0);
ssb.append("\n\n"); ssb.append("\n");
} }
} }
} catch (Throwable ex) { } catch (Throwable ex) {