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());
|
||||
|
||||
reactionsBinding = getReactionsBinding();
|
||||
new Reaction().showReactions(message, reactionsBinding, context, true);
|
||||
new Reaction().showReactions(message, reactionsBinding, getMessageText().getContext(), true);
|
||||
reactionsBinding.reactionsEmojiWrapper.setOnClickListener(l -> {
|
||||
reactionsInterface.onClickReactions(message);
|
||||
});
|
||||
|
|
|
@ -72,13 +72,17 @@ class Reaction {
|
|||
reactionAmount.setTextColor(ContextCompat.getColor(context, R.color.white))
|
||||
} else {
|
||||
// reactionAmount.setTextColor(ContextCompat.getColor(context, R.color.nc_message_incoming_reaction_text_color))
|
||||
/*
|
||||
reactionAmount.setTextColor(
|
||||
ResourcesCompat.getColor(
|
||||
context.applicationContext.resources,
|
||||
R.color.nc_message_incoming_reaction_text_color,
|
||||
context.resources,
|
||||
R.color.high_emphasis_text,
|
||||
null
|
||||
)
|
||||
)
|
||||
*/
|
||||
reactionAmount.setTextColor(ContextCompat.getColor(binding.root.context, R.color
|
||||
.high_emphasis_text))
|
||||
}
|
||||
reactionAmount.text = amount.toString()
|
||||
emojiWithAmountWrapper.addView(reactionAmount)
|
||||
|
|
Loading…
Reference in a new issue