About activity added to nav graph
This commit is contained in:
parent
373befcd83
commit
d4ab36fd69
2 changed files with 11 additions and 1 deletions
|
@ -40,7 +40,7 @@ class MainSettingsFragment : Fragment(), View.OnClickListener {
|
|||
R.id.imageSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_imageSettingFragment)
|
||||
R.id.notificationSettings -> findNavController().navigate(R.id.action_mainSettingsFragment_to_notificationSettingsFragment)
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,6 +55,10 @@
|
|||
app:exitAnim="@anim/retro_fragment_open_exit"
|
||||
app:popEnterAnim="@anim/retro_fragment_close_enter"
|
||||
app:popExitAnim="@anim/retro_fragment_close_exit" />
|
||||
|
||||
<action
|
||||
android:id="@+id/action_mainSettingsFragment_to_aboutActivity"
|
||||
app:destination="@id/aboutActivity" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
|
@ -85,4 +89,10 @@
|
|||
android:id="@+id/themeSettingsFragment"
|
||||
android:name="code.name.monkey.retromusic.fragments.settings.ThemeSettingsFragment"
|
||||
android:label="ThemeSettingsFragment" />
|
||||
|
||||
<activity
|
||||
android:id="@+id/aboutActivity"
|
||||
android:name="code.name.monkey.retromusic.activities.AboutActivity"
|
||||
android:label="AboutActivity" />
|
||||
|
||||
</navigation>
|
Loading…
Reference in a new issue