About activity added to nav graph

This commit is contained in:
Hemanth S 2020-07-25 00:02:28 +05:30
parent 373befcd83
commit d4ab36fd69
2 changed files with 11 additions and 1 deletions

View file

@ -40,7 +40,7 @@ class MainSettingsFragment : Fragment(), View.OnClickListener {
R.id.imageSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_imageSettingFragment) R.id.imageSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_imageSettingFragment)
R.id.notificationSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_notificationSettingsFragment) R.id.notificationSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_notificationSettingsFragment)
R.id.otherSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_otherSettingsFragment) R.id.otherSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_otherSettingsFragment)
R.id.aboutSettings -> NavigationUtil.goToAbout(requireActivity()) R.id.aboutSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_aboutActivity)
R.id.nowPlayingSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_nowPlayingSettingsFragment) R.id.nowPlayingSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_nowPlayingSettingsFragment)
} }
} }

View file

@ -55,6 +55,10 @@
app:exitAnim="@anim/retro_fragment_open_exit" app:exitAnim="@anim/retro_fragment_open_exit"
app:popEnterAnim="@anim/retro_fragment_close_enter" app:popEnterAnim="@anim/retro_fragment_close_enter"
app:popExitAnim="@anim/retro_fragment_close_exit" /> app:popExitAnim="@anim/retro_fragment_close_exit" />
<action
android:id="@+id/action_mainSettingsFragment_to_aboutActivity"
app:destination="@id/aboutActivity" />
</fragment> </fragment>
<fragment <fragment
@ -85,4 +89,10 @@
android:id="@+id/themeSettingsFragment" android:id="@+id/themeSettingsFragment"
android:name="code.name.monkey.retromusic.fragments.settings.ThemeSettingsFragment" android:name="code.name.monkey.retromusic.fragments.settings.ThemeSettingsFragment"
android:label="ThemeSettingsFragment" /> android:label="ThemeSettingsFragment" />
<activity
android:id="@+id/aboutActivity"
android:name="code.name.monkey.retromusic.activities.AboutActivity"
android:label="AboutActivity" />
</navigation> </navigation>