public override bool MenuItemSelected(IMenuItem item) { switch (item.ItemId) { case Resource.Id.Menu_User_Share: Share(); return(true); case Resource.Id.Menu_User_Follow: Presenter.ToggleFollowUser(_userId ?? 0); return(true); case Resource.Id.Menu_User_Message: AniListActivityCreateDialog.CreateNewActivity(this, (message) => Presenter?.PostUserMessage(_userId ?? 0, message)); return(true); } return(base.MenuItemSelected(item)); }
public override bool OnOptionsItemSelected(IMenuItem item) { switch (item.ItemId) { case Resource.Id.Menu_Home_Refresh: RefreshActivity(); return(true); case Resource.Id.Menu_Home_PostStatus: AniListActivityCreateDialog.CreateNewActivity(Activity, Presenter.CreateStatusActivity); return(true); case Resource.Id.Menu_Home_ToggleActivityType: _isFollowingOnly = !_isFollowingOnly; _recyclerAdapter = new AniListActivityRecyclerAdapter(Activity, Presenter, Presenter.GetAniListActivity(_isFollowingOnly), Presenter.GetUserId()); _recyclerView.SetAdapter(_recyclerAdapter); SetActivityIcon(item); return(true); } return(base.OnOptionsItemSelected(item)); }