mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-15 18:12:54 +00:00
Bug 1830083 - Make action_home local to JunoOnboardingFragment
This commit is contained in:
parent
296e5ec0c3
commit
2cbd3b5020
@ -278,7 +278,7 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
|
||||
) {
|
||||
// Unless activity is recreated due to config change, navigate to onboarding
|
||||
if (savedInstanceState == null) {
|
||||
navHost.navController.navigate(NavGraphDirections.actionGlobalHomeJunoOnboarding())
|
||||
navHost.navController.navigate(NavGraphDirections.actionGlobalJunoOnboarding())
|
||||
}
|
||||
} else {
|
||||
lifecycleScope.launch(IO) {
|
||||
|
@ -158,7 +158,7 @@ class JunoOnboardingFragment : Fragment() {
|
||||
requireComponents.fenixOnboarding.finish()
|
||||
findNavController().nav(
|
||||
id = R.id.junoOnboardingFragment,
|
||||
directions = JunoOnboardingFragmentDirections.actionOnboardingHome(),
|
||||
directions = JunoOnboardingFragmentDirections.actionHome(),
|
||||
)
|
||||
telemetryRecorder.onOnboardingComplete(
|
||||
sequenceId = sequenceId,
|
||||
|
@ -34,17 +34,11 @@
|
||||
app:popUpToInclusive="false" />
|
||||
|
||||
<action
|
||||
android:id="@+id/action_global_home_juno_onboarding"
|
||||
android:id="@+id/action_global_juno_onboarding"
|
||||
app:destination="@id/junoOnboardingFragment"
|
||||
app:popUpTo="@id/startupFragment"
|
||||
app:popUpToInclusive="true" />
|
||||
|
||||
<action
|
||||
android:id="@+id/action_onboarding_home"
|
||||
app:destination="@id/homeFragment"
|
||||
app:popUpTo="@id/junoOnboardingFragment"
|
||||
app:popUpToInclusive="true" />
|
||||
|
||||
<action
|
||||
android:id="@+id/action_global_home_onboarding_dialog"
|
||||
app:destination="@id/homeOnboardingDialogFragment" />
|
||||
@ -202,6 +196,11 @@
|
||||
<fragment
|
||||
android:id="@+id/junoOnboardingFragment"
|
||||
android:name="org.mozilla.fenix.onboarding.JunoOnboardingFragment">
|
||||
<action
|
||||
android:id="@+id/action_home"
|
||||
app:destination="@id/homeFragment"
|
||||
app:popUpTo="@id/junoOnboardingFragment"
|
||||
app:popUpToInclusive="true" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
|
Loading…
Reference in New Issue
Block a user