mirror of https://github.com/M66B/FairEmail.git
Expand sender and subject on expanding message
This commit is contained in:
parent
376e4ff344
commit
378896195e
|
@ -742,6 +742,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
private void clearExpanded() {
|
private void clearExpanded() {
|
||||||
cowner.stop();
|
cowner.stop();
|
||||||
|
|
||||||
|
if (compact) {
|
||||||
|
tvFrom.setSingleLine(true);
|
||||||
|
tvSubject.setSingleLine(true);
|
||||||
|
}
|
||||||
|
|
||||||
grpAddresses.setVisibility(View.GONE);
|
grpAddresses.setVisibility(View.GONE);
|
||||||
grpHeaders.setVisibility(View.GONE);
|
grpHeaders.setVisibility(View.GONE);
|
||||||
grpCalendar.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_headers = properties.getValue("headers", message.id);
|
||||||
boolean show_html = properties.getValue("html", message.id);
|
boolean show_html = properties.getValue("html", message.id);
|
||||||
|
|
||||||
|
if (compact) {
|
||||||
|
tvFrom.setSingleLine(false);
|
||||||
|
tvSubject.setSingleLine(false);
|
||||||
|
}
|
||||||
|
|
||||||
grpAddresses.setVisibility(View.VISIBLE);
|
grpAddresses.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
boolean hasFrom = (message.from != null && message.from.length > 0);
|
boolean hasFrom = (message.from != null && message.from.length > 0);
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
android:layout_marginEnd="6dp"
|
android:layout_marginEnd="6dp"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:maxLines="1"
|
android:singleLine="true"
|
||||||
android:minHeight="24dp"
|
android:minHeight="24dp"
|
||||||
android:text="From"
|
android:text="From"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
|
Loading…
Reference in New Issue