kopia lustrzana https://github.com/ryukoposting/Signal-Android
rodzic
bece58d939
commit
c54f016213
|
@ -293,6 +293,10 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
|
||||||
footerView.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.quote_view_background));
|
footerView.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.quote_view_background));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setTextSize(int unit, float size) {
|
||||||
|
bodyView.setTextSize(unit, size);
|
||||||
|
}
|
||||||
|
|
||||||
public long getQuoteId() {
|
public long getQuoteId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1105,6 +1105,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
|
||||||
//noinspection ConstantConditions
|
//noinspection ConstantConditions
|
||||||
quoteView.setQuote(glideRequests, quote.getId(), Recipient.live(quote.getAuthor()).get(), quote.getDisplayText(), quote.isOriginalMissing(), quote.getAttachment(), chatColors);
|
quoteView.setQuote(glideRequests, quote.getId(), Recipient.live(quote.getAuthor()).get(), quote.getDisplayText(), quote.isOriginalMissing(), quote.getAttachment(), chatColors);
|
||||||
quoteView.setVisibility(View.VISIBLE);
|
quoteView.setVisibility(View.VISIBLE);
|
||||||
|
quoteView.setTextSize(TypedValue.COMPLEX_UNIT_SP, SignalStore.settings().getMessageFontSize());
|
||||||
quoteView.getLayoutParams().width = ViewGroup.LayoutParams.WRAP_CONTENT;
|
quoteView.getLayoutParams().width = ViewGroup.LayoutParams.WRAP_CONTENT;
|
||||||
|
|
||||||
quoteView.setOnClickListener(view -> {
|
quoteView.setOnClickListener(view -> {
|
||||||
|
|
Ładowanie…
Reference in New Issue