mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-09 19:10:42 +00:00
For #2391 - Dismiss tour when navigating to search or settings
This commit is contained in:
parent
479c00bc5f
commit
a041d9ef74
@ -155,6 +155,8 @@ class HomeFragment : Fragment(), CoroutineScope {
|
|||||||
view.toolbar.compoundDrawablePadding = roundToInt
|
view.toolbar.compoundDrawablePadding = roundToInt
|
||||||
view.toolbar.setOnClickListener {
|
view.toolbar.setOnClickListener {
|
||||||
invokePendingDeleteSessionJob()
|
invokePendingDeleteSessionJob()
|
||||||
|
onboarding.finish()
|
||||||
|
|
||||||
val directions = HomeFragmentDirections.actionHomeFragmentToSearchFragment(null)
|
val directions = HomeFragmentDirections.actionHomeFragmentToSearchFragment(null)
|
||||||
Navigation.findNavController(it).navigate(directions)
|
Navigation.findNavController(it).navigate(directions)
|
||||||
|
|
||||||
@ -377,12 +379,14 @@ class HomeFragment : Fragment(), CoroutineScope {
|
|||||||
when (it) {
|
when (it) {
|
||||||
HomeMenu.Item.Settings -> {
|
HomeMenu.Item.Settings -> {
|
||||||
invokePendingDeleteSessionJob()
|
invokePendingDeleteSessionJob()
|
||||||
|
onboarding.finish()
|
||||||
Navigation.findNavController(homeLayout).navigate(
|
Navigation.findNavController(homeLayout).navigate(
|
||||||
HomeFragmentDirections.actionHomeFragmentToSettingsFragment()
|
HomeFragmentDirections.actionHomeFragmentToSettingsFragment()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
HomeMenu.Item.Library -> {
|
HomeMenu.Item.Library -> {
|
||||||
invokePendingDeleteSessionJob()
|
invokePendingDeleteSessionJob()
|
||||||
|
onboarding.finish()
|
||||||
Navigation.findNavController(homeLayout).navigate(
|
Navigation.findNavController(homeLayout).navigate(
|
||||||
HomeFragmentDirections.actionHomeFragmentToLibraryFragment()
|
HomeFragmentDirections.actionHomeFragmentToLibraryFragment()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user