mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/21773 - Updated "customize homepage" button to go to the new Homepage submenu in Settings
This commit is contained in:
parent
d73ea2cf98
commit
39a3aacc78
@ -881,7 +881,7 @@ class HomeFragment : Fragment() {
|
||||
hideOnboardingIfNeeded()
|
||||
nav(
|
||||
R.id.homeFragment,
|
||||
HomeFragmentDirections.actionGlobalCustomizationFragment()
|
||||
HomeFragmentDirections.actionGlobalHomeSettingsFragment()
|
||||
)
|
||||
}
|
||||
is HomeMenu.Item.SyncAccount -> {
|
||||
|
@ -449,7 +449,7 @@ class DefaultSessionControlController(
|
||||
}
|
||||
|
||||
override fun handleCustomizeHomeTapped() {
|
||||
val directions = HomeFragmentDirections.actionGlobalCustomizationFragment()
|
||||
val directions = HomeFragmentDirections.actionGlobalHomeSettingsFragment()
|
||||
navController.nav(R.id.homeFragment, directions)
|
||||
metrics.track(Event.HomeScreenCustomizedHomeClicked)
|
||||
}
|
||||
|
@ -67,8 +67,8 @@
|
||||
android:id="@+id/action_global_settingsFragment"
|
||||
app:destination="@id/settingsFragment" />
|
||||
<action
|
||||
android:id="@+id/action_global_customizationFragment"
|
||||
app:destination="@id/customizationFragment" />
|
||||
android:id="@+id/action_global_homeSettingsFragment"
|
||||
app:destination="@id/homeSettingsFragment" />
|
||||
<action
|
||||
android:id="@+id/action_global_privateBrowsingFragment"
|
||||
app:destination="@id/privateBrowsingFragment" />
|
||||
@ -215,9 +215,6 @@
|
||||
<action
|
||||
android:id="@+id/action_browserFragment_to_settingsFragment"
|
||||
app:destination="@id/settingsFragment" />
|
||||
<action
|
||||
android:id="@+id/action_browserFragment_to_customFragment"
|
||||
app:destination="@id/customizationFragment" />
|
||||
<action
|
||||
android:id="@+id/action_browserFragment_to_createShortcutFragment"
|
||||
app:destination="@id/createShortcutFragment" />
|
||||
|
@ -170,7 +170,7 @@ class DefaultSessionControlControllerTest {
|
||||
verify {
|
||||
navController.navigate(
|
||||
match<NavDirections> {
|
||||
it.actionId == R.id.action_global_customizationFragment
|
||||
it.actionId == R.id.action_global_homeSettingsFragment
|
||||
},
|
||||
null
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user