Slightly larger icon in compact view

pull/162/head
M66B 6 years ago
parent f142e0b647
commit 759683457f

@ -650,7 +650,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvPreview.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * 0.9f); tvPreview.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * 0.9f);
int px = Math.round(TypedValue.applyDimension( int px = Math.round(TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_PX, textSize * (compact ? 1.5f : 3.0f), TypedValue.COMPLEX_UNIT_PX, textSize * (compact ? 2.0f : 3.0f),
context.getResources().getDisplayMetrics())); context.getResources().getDisplayMetrics()));
if (compact && tvFrom.getMinHeight() != px) if (compact && tvFrom.getMinHeight() != px)
tvFrom.setMinimumHeight(px); tvFrom.setMinimumHeight(px);

Loading…
Cancel
Save