mirror of https://github.com/M66B/FairEmail.git
Fix, improvement
This commit is contained in:
parent
412b480d6b
commit
6e1dd13743
|
@ -441,6 +441,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
if (textSize != 0) {
|
if (textSize != 0) {
|
||||||
tvFrom.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
tvFrom.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
||||||
tvSubject.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * 0.9f);
|
tvSubject.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * 0.9f);
|
||||||
|
tvPreview.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * 0.9f);
|
||||||
tvBody.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
tvBody.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
||||||
|
|
||||||
int px = Math.round(TypedValue.applyDimension(
|
int px = Math.round(TypedValue.applyDimension(
|
||||||
|
@ -1271,6 +1272,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
boolean expanded = !properties.getValue("expanded", message.id);
|
boolean expanded = !properties.getValue("expanded", message.id);
|
||||||
properties.setValue("expanded", message.id, expanded);
|
properties.setValue("expanded", message.id, expanded);
|
||||||
|
|
||||||
|
ivExpander.setImageResource(expanded ? R.drawable.baseline_expand_less_24 : R.drawable.baseline_expand_more_24);
|
||||||
|
|
||||||
if (expanded) {
|
if (expanded) {
|
||||||
bindExpanded(message);
|
bindExpanded(message);
|
||||||
properties.scrollTo(getAdapterPosition(), 0);
|
properties.scrollTo(getAdapterPosition(), 0);
|
||||||
|
|
Loading…
Reference in New Issue