private void SetRecyclerViewAdapters()
 {
     try
     {
         PostFeedAdapter = new NativePostAdapter(Activity, UserDetails.UserId, MainRecyclerView, NativeFeedType.Global, Activity.SupportFragmentManager);
         MainRecyclerView?.SetXAdapter(PostFeedAdapter, SwipeRefreshLayout);
         if (AppSettings.ShowNewPostOnNewsFeed)
         {
             MainRecyclerView?.SetXPopupBubble(PopupBubbleView);
         }
         else
         {
             PopupBubbleView.Visibility = ViewStates.Gone;
         }
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
예제 #2
0
 private void SetRecyclerViewAdapters(View view)
 {
     try
     {
         MainRecyclerView = (WRecyclerView)view.FindViewById(Resource.Id.newsfeedRecyler);
         PostFeedAdapter  = new NativePostAdapter(Activity, UserDetails.UserId, MainRecyclerView, NativeFeedType.Global, Activity.SupportFragmentManager);
         MainRecyclerView.SetXAdapter(PostFeedAdapter, SwipeRefreshLayout);
         if (AppSettings.ShowNewPostOnNewsFeed)
         {
             MainRecyclerView.SetXPopupBubble(PopupBubbleView);
         }
         else
         {
             PopupBubbleView.Visibility = ViewStates.Gone;
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
        private void SetRecyclerViewAdapters()
        {
            try
            {
                PostFeedAdapter = new NativePostAdapter(Activity, UserDetails.UserId, MainRecyclerView, NativeFeedType.Global);
                MainRecyclerView?.SetXAdapter(PostFeedAdapter, SwipeRefreshLayout);
                switch (AppSettings.ShowNewPostOnNewsFeed)
                {
                case true:
                    MainRecyclerView?.SetXPopupBubble(PopupBubbleView);
                    break;

                default:
                    PopupBubbleView.Visibility = ViewStates.Gone;
                    break;
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }