Expand sender and subject on expanding message

This commit is contained in:
M66B
2019-05-28 08:03:18 +02:00
parent 376e4ff344
commit 378896195e
2 changed files with 11 additions and 1 deletions

View File

@@ -742,6 +742,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private void clearExpanded() {
cowner.stop();
if (compact) {
tvFrom.setSingleLine(true);
tvSubject.setSingleLine(true);
}
grpAddresses.setVisibility(View.GONE);
grpHeaders.setVisibility(View.GONE);
grpCalendar.setVisibility(View.GONE);
@@ -824,6 +829,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean show_headers = properties.getValue("headers", message.id);
boolean show_html = properties.getValue("html", message.id);
if (compact) {
tvFrom.setSingleLine(false);
tvSubject.setSingleLine(false);
}
grpAddresses.setVisibility(View.VISIBLE);
boolean hasFrom = (message.from != null && message.from.length > 0);