Skip to content

Commit c54f016

Browse files
synullingercody-signal
authored andcommitted
Fix inconsistent text scaling in quotes.
Fixes signalapp#10188
1 parent bece58d commit c54f016

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/src/main/java/org/thoughtcrime/securesms/components/QuoteView.java

+4
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ private void setQuoteMissingFooter(boolean missing) {
293293
footerView.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.quote_view_background));
294294
}
295295

296+
public void setTextSize(int unit, float size) {
297+
bodyView.setTextSize(unit, size);
298+
}
299+
296300
public long getQuoteId() {
297301
return id;
298302
}

app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java

+1
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ private void setQuote(@NonNull MessageRecord current, @NonNull Optional<MessageR
11051105
//noinspection ConstantConditions
11061106
quoteView.setQuote(glideRequests, quote.getId(), Recipient.live(quote.getAuthor()).get(), quote.getDisplayText(), quote.isOriginalMissing(), quote.getAttachment(), chatColors);
11071107
quoteView.setVisibility(View.VISIBLE);
1108+
quoteView.setTextSize(TypedValue.COMPLEX_UNIT_SP, SignalStore.settings().getMessageFontSize());
11081109
quoteView.getLayoutParams().width = ViewGroup.LayoutParams.WRAP_CONTENT;
11091110

11101111
quoteView.setOnClickListener(view -> {

0 commit comments

Comments
 (0)