private void showBreadCrumb ( @ NonNull final NavigationPreference navigationPreference , @ Nullable final Bundle arguments ) { CharSequence breadCrumbTitle = null ; if ( arguments != null && arguments . containsKey ( EXTRA_SHOW_FRAGMENT_TITLE ) ) { breadCrumbTitle = arguments . getCharSequence ( EXTRA_SHOW_FRAGMENT_TITLE ) ; } if ( TextUtils . isEmpty ( breadCrumbTitle ) ) { breadCrumbTitle = navigationPreference . getBreadCrumbTitle ( ) ; if ( TextUtils . isEmpty ( breadCrumbTitle ) ) { breadCrumbTitle = navigationPreference . getTitle ( ) ; if ( TextUtils . isEmpty ( breadCrumbTitle ) ) { breadCrumbTitle = getTitle ( ) ; } } } showBreadCrumb ( breadCrumbTitle ) ; }
Shows the bread crumb of a specific navigation preference . When using the split screen layout the bread crumb is shown above the currently shown preference fragment otherwise the bread crumb is shown as the toolbar title .