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.setOnClickListener {
|
||||
invokePendingDeleteSessionJob()
|
||||
onboarding.finish()
|
||||
|
||||
val directions = HomeFragmentDirections.actionHomeFragmentToSearchFragment(null)
|
||||
Navigation.findNavController(it).navigate(directions)
|
||||
|
||||
@ -377,12 +379,14 @@ class HomeFragment : Fragment(), CoroutineScope {
|
||||
when (it) {
|
||||
HomeMenu.Item.Settings -> {
|
||||
invokePendingDeleteSessionJob()
|
||||
onboarding.finish()
|
||||
Navigation.findNavController(homeLayout).navigate(
|
||||
HomeFragmentDirections.actionHomeFragmentToSettingsFragment()
|
||||
)
|
||||
}
|
||||
HomeMenu.Item.Library -> {
|
||||
invokePendingDeleteSessionJob()
|
||||
onboarding.finish()
|
||||
Navigation.findNavController(homeLayout).navigate(
|
||||
HomeFragmentDirections.actionHomeFragmentToLibraryFragment()
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user