2
0
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:
Noah Bond 2021-10-07 14:56:14 -07:00 committed by mergify[bot]
parent d73ea2cf98
commit 39a3aacc78
4 changed files with 5 additions and 8 deletions

View File

@ -881,7 +881,7 @@ class HomeFragment : Fragment() {
hideOnboardingIfNeeded()
nav(
R.id.homeFragment,
HomeFragmentDirections.actionGlobalCustomizationFragment()
HomeFragmentDirections.actionGlobalHomeSettingsFragment()
)
}
is HomeMenu.Item.SyncAccount -> {

View File

@ -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)
}

View File

@ -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" />

View File

@ -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
)