Search in sources :

Example 1 with FragmentNavigation

use of com.github.anrimian.musicplayer.ui.utils.fragments.navigation.FragmentNavigation in project music-player by Anrimian.

the class LibraryFoldersRootFragment method onFragmentMovedOnTop.

@Override
public void onFragmentMovedOnTop() {
    super.onFragmentMovedOnTop();
    AdvancedToolbar toolbar = requireActivity().findViewById(R.id.toolbar);
    toolbar.setSubtitle(R.string.folders);
    FragmentNavigation folderNavigation = FragmentNavigation.from(getChildFragmentManager());
    if (folderNavigation.isInitialized()) {
        folderNavigation.dispatchMovedToTop();
    }
}
Also used : FragmentNavigation(com.github.anrimian.musicplayer.ui.utils.fragments.navigation.FragmentNavigation) AdvancedToolbar(com.github.anrimian.musicplayer.ui.common.toolbar.AdvancedToolbar)

Aggregations

AdvancedToolbar (com.github.anrimian.musicplayer.ui.common.toolbar.AdvancedToolbar)1 FragmentNavigation (com.github.anrimian.musicplayer.ui.utils.fragments.navigation.FragmentNavigation)1