mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 02:39:55 +01:00
Add support for blocked chat events.
This commit is contained in:
committed by
Greyson Parrelli
parent
8101fcbd8d
commit
f61109391a
@@ -78,13 +78,11 @@ public class FromTextView extends SimpleEmojiTextView {
|
||||
|
||||
setText(builder);
|
||||
|
||||
if (recipient.isBlocked()) setCompoundDrawablesRelativeWithIntrinsicBounds(getBlocked(), null, null, null);
|
||||
else if (RemoteConfig.getInlinePinnedChats() && isPinned) setCompoundDrawablesRelativeWithIntrinsicBounds(getPinned(), null, null, null);
|
||||
else setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
private Drawable getBlocked() {
|
||||
return getDrawable(R.drawable.symbol_block_16, R.color.signal_icon_tint_secondary);
|
||||
if (RemoteConfig.getInlinePinnedChats() && isPinned) {
|
||||
setCompoundDrawablesRelativeWithIntrinsicBounds(getPinned(), null, null, null);
|
||||
} else {
|
||||
setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
private Drawable getMuted() {
|
||||
|
||||
Reference in New Issue
Block a user