mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 15:05:44 +03:00
use proper context to be day/night aware
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
fd98ccc816
commit
583b52588c
2 changed files with 7 additions and 3 deletions
|
@ -259,7 +259,7 @@ public abstract class MagicPreviewMessageViewHolder extends MessageHolders.Incom
|
||||||
itemView.setTag(REPLYABLE_VIEW_TAG, message.isReplyable());
|
itemView.setTag(REPLYABLE_VIEW_TAG, message.isReplyable());
|
||||||
|
|
||||||
reactionsBinding = getReactionsBinding();
|
reactionsBinding = getReactionsBinding();
|
||||||
new Reaction().showReactions(message, reactionsBinding, context, true);
|
new Reaction().showReactions(message, reactionsBinding, getMessageText().getContext(), true);
|
||||||
reactionsBinding.reactionsEmojiWrapper.setOnClickListener(l -> {
|
reactionsBinding.reactionsEmojiWrapper.setOnClickListener(l -> {
|
||||||
reactionsInterface.onClickReactions(message);
|
reactionsInterface.onClickReactions(message);
|
||||||
});
|
});
|
||||||
|
|
|
@ -72,13 +72,17 @@ class Reaction {
|
||||||
reactionAmount.setTextColor(ContextCompat.getColor(context, R.color.white))
|
reactionAmount.setTextColor(ContextCompat.getColor(context, R.color.white))
|
||||||
} else {
|
} else {
|
||||||
// reactionAmount.setTextColor(ContextCompat.getColor(context, R.color.nc_message_incoming_reaction_text_color))
|
// reactionAmount.setTextColor(ContextCompat.getColor(context, R.color.nc_message_incoming_reaction_text_color))
|
||||||
|
/*
|
||||||
reactionAmount.setTextColor(
|
reactionAmount.setTextColor(
|
||||||
ResourcesCompat.getColor(
|
ResourcesCompat.getColor(
|
||||||
context.applicationContext.resources,
|
context.resources,
|
||||||
R.color.nc_message_incoming_reaction_text_color,
|
R.color.high_emphasis_text,
|
||||||
null
|
null
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
*/
|
||||||
|
reactionAmount.setTextColor(ContextCompat.getColor(binding.root.context, R.color
|
||||||
|
.high_emphasis_text))
|
||||||
}
|
}
|
||||||
reactionAmount.text = amount.toString()
|
reactionAmount.text = amount.toString()
|
||||||
emojiWithAmountWrapper.addView(reactionAmount)
|
emojiWithAmountWrapper.addView(reactionAmount)
|
||||||
|
|
Loading…
Reference in a new issue