mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +00:00
Fixed icon size
This commit is contained in:
parent
3483d61233
commit
0fbf361f52
1 changed files with 4 additions and 1 deletions
|
@ -649,7 +649,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
tvSubject.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * 0.9f);
|
||||
tvPreview.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * 0.9f);
|
||||
|
||||
int px = Math.round(tvFrom.getTextSize() + tvSubject.getTextSize());
|
||||
int px = Math.round(
|
||||
textSize * (message.unseen > 0 ? 1.1f : 1f) +
|
||||
textSize * 0.9f +
|
||||
(compact ? 0 : textSize * 0.9f));
|
||||
ViewGroup.LayoutParams lparams = ivAvatar.getLayoutParams();
|
||||
if (lparams.height != px) {
|
||||
lparams.width = px;
|
||||
|
|
Loading…
Reference in a new issue