Exemple #1
0
        public void OnClick(View v)
        {
            try
            {
                if (v?.Id == AXEmojiEditText?.Id)
                {
                    if (Popup.IsShowing)
                    {
                        Popup.Toggle();

                        switch (TypePage)
                        {
                        // Create your fragment here
                        case "ChatWindowActivity":
                            ChatWindow?.RemoveButtonFragment();
                            break;

                        case "PageChatWindowActivity":
                            PageActivityView?.RemoveButtonFragment();
                            break;

                        case "GroupChatWindowActivity":
                            GroupActivityView?.RemoveButtonFragment();
                            break;

                        case "StoryReplyActivity":
                            //StoryReplyActivity?.RemoveButtonFragment();
                            break;
                        }
                    }
                }
                else if (v?.Id == EmojisViewImage?.Id)
                {
                    Popup.Toggle();
                    switch (TypePage)
                    {
                    // Create your fragment here
                    case "ChatWindowActivity":
                        ChatWindow?.RemoveButtonFragment();
                        break;

                    case "PageChatWindowActivity":
                        PageActivityView?.RemoveButtonFragment();
                        break;

                    case "GroupChatWindowActivity":
                        GroupActivityView?.RemoveButtonFragment();
                        break;

                    case "StoryReplyActivity":
                        //StoryReplyActivity?.RemoveButtonFragment();
                        break;
                    }
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }