public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { try { View view = inflater.Inflate(Resource.Layout.MainFragmentLayout, container, false); ContextMain = (ReactionPostTabbedActivity)Activity; InitComponent(view); SetRecyclerViewAdapters(); return(view); } catch (Exception e) { Console.WriteLine(e); return(null); } }
public override void OnCreate(Bundle savedInstanceState) { try { base.OnCreate(savedInstanceState); NamePage = Arguments?.GetString("NamePage") ?? "Post"; if (NamePage == "Post") { ContextMainPost = (ReactionPostTabbedActivity)Activity; } else if (NamePage == "Comment" || NamePage == "Reply") { ContextMainComment = (ReactionCommentTabbedActivity)Activity; } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }