public static void SetReactionPack(CommentAdapterViewHolder holder, string React) { try { var MReactionPack = XReactions.GetReactions(); var data = MReactionPack?.FirstOrDefault(a => a.GetReactText() == React); if (data != null) { holder.LikeTextView.Text = data.GetReactText(); holder.LikeTextView.SetTextColor(Color.ParseColor(data.GetReactTextColor())); } } catch (Exception exception) { Console.WriteLine(exception); } }
public static void SetReactionPack(CommentAdapterViewHolder holder, string react) { try { var mReactionPack = XReactions.GetReactions(); var data = mReactionPack?.FirstOrDefault(a => a.GetReactText() == react); if (data != null) { holder.LikeTextView.Text = data.GetReactText(); holder.LikeTextView.SetTextColor(Color.ParseColor(data.GetReactTextColor())); } } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } }