Search in sources :

Example 1 with PlayerSettingsFragment

use of com.github.anrimian.musicplayer.ui.settings.player.PlayerSettingsFragment in project music-player by Anrimian.

the class SettingsFragment method onViewCreated.

@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    AdvancedToolbar toolbar = requireActivity().findViewById(R.id.toolbar);
    navigation = FragmentNavigation.from(getParentFragmentManager());
    viewBinding.tvDisplay.setOnClickListener(v -> navigation.addNewFragment(new DisplaySettingsFragment()));
    viewBinding.tvLibrary.setOnClickListener(v -> navigation.addNewFragment(new LibrarySettingsFragment()));
    viewBinding.tvPlayer.setOnClickListener(v -> navigation.addNewFragment(new PlayerSettingsFragment()));
    viewBinding.tvTheme.setOnClickListener(v -> navigation.addNewFragment(new ThemeSettingsFragment()));
    viewBinding.tvHeadset.setOnClickListener(v -> navigation.addNewFragment(new HeadsetSettingsFragment()));
    viewBinding.llRunRescanStorage.setOnClickListener(v -> onRescanStorageButtonClicked());
    SlidrPanel.simpleSwipeBack(viewBinding.flContainer, this, toolbar::onStackFragmentSlided);
}
Also used : ThemeSettingsFragment(com.github.anrimian.musicplayer.ui.settings.themes.ThemeSettingsFragment) HeadsetSettingsFragment(com.github.anrimian.musicplayer.ui.settings.headset.HeadsetSettingsFragment) PlayerSettingsFragment(com.github.anrimian.musicplayer.ui.settings.player.PlayerSettingsFragment) DisplaySettingsFragment(com.github.anrimian.musicplayer.ui.settings.display.DisplaySettingsFragment) AdvancedToolbar(com.github.anrimian.musicplayer.ui.common.toolbar.AdvancedToolbar) LibrarySettingsFragment(com.github.anrimian.musicplayer.ui.settings.library.LibrarySettingsFragment)

Aggregations

AdvancedToolbar (com.github.anrimian.musicplayer.ui.common.toolbar.AdvancedToolbar)1 DisplaySettingsFragment (com.github.anrimian.musicplayer.ui.settings.display.DisplaySettingsFragment)1 HeadsetSettingsFragment (com.github.anrimian.musicplayer.ui.settings.headset.HeadsetSettingsFragment)1 LibrarySettingsFragment (com.github.anrimian.musicplayer.ui.settings.library.LibrarySettingsFragment)1 PlayerSettingsFragment (com.github.anrimian.musicplayer.ui.settings.player.PlayerSettingsFragment)1 ThemeSettingsFragment (com.github.anrimian.musicplayer.ui.settings.themes.ThemeSettingsFragment)1