Fixed icon size

pull/162/head
M66B 6 years ago
parent 3483d61233
commit 0fbf361f52

@ -649,7 +649,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
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); 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(); ViewGroup.LayoutParams lparams = ivAvatar.getLayoutParams();
if (lparams.height != px) { if (lparams.height != px) {
lparams.width = px; lparams.width = px;

Loading…
Cancel
Save