private bool NavigateUp(IPreviousNavigator navigator) { if (navigator == null) { return(false); } bool navigated = navigator.Previous(); return(navigated); }
private bool GoPrevious() { Fragment frag = SupportFragmentManager.FindFragmentByTag(MainContentFragmentTag); IPreviousNavigator navigator = frag as IPreviousNavigator; if (navigator == null) { return(false); } return(navigator.Previous()); }
public override bool OnOptionsItemSelected(IMenuItem item) { bool showingDetails = !MenuDrawerToggle.DrawerIndicatorEnabled; if (item.ItemId == Android.Resource.Id.Home && showingDetails) { IPreviousNavigator navigator = SupportFragmentManager.FindFragmentByTag(ModuleDetailFragmentTag) as IPreviousNavigator; if (navigator == null || !navigator.Previous()) { ShowModuleSelectionScreen(); return(true); } } return(base.OnOptionsItemSelected(item)); }