No Issue: Create a method to "finish onboarding" in CI
If the intent that starts the HomeActivity includes an extra boolean flag named finishonboarding and it is set to true, Fenix will "finish onboarding".master
parent
686facffc6
commit
116f7b3d65
|
@ -52,6 +52,7 @@ import org.mozilla.fenix.home.intent.SpeechProcessingIntentProcessor
|
|||
import org.mozilla.fenix.home.intent.StartSearchIntentProcessor
|
||||
import org.mozilla.fenix.library.bookmarks.BookmarkFragmentDirections
|
||||
import org.mozilla.fenix.library.history.HistoryFragmentDirections
|
||||
import org.mozilla.fenix.onboarding.FenixOnboarding
|
||||
import org.mozilla.fenix.perf.HotStartPerformanceMonitor
|
||||
import org.mozilla.fenix.search.SearchFragmentDirections
|
||||
import org.mozilla.fenix.settings.about.AboutFragmentDirections
|
||||
|
@ -97,6 +98,10 @@ open class HomeActivity : AppCompatActivity() {
|
|||
|
||||
setupToolbarAndNavigation()
|
||||
|
||||
if (intent.getBooleanExtra(EXTRA_FINISH_ONBOARDING, false)) {
|
||||
FenixOnboarding(this).finish()
|
||||
}
|
||||
|
||||
if (settings().isTelemetryEnabled) {
|
||||
lifecycle.addObserver(BreadcrumbsRecorder(components.analytics.crashReporter,
|
||||
navHost.navController, ::getBreadcrumbMessage))
|
||||
|
@ -355,5 +360,6 @@ open class HomeActivity : AppCompatActivity() {
|
|||
const val PRIVATE_BROWSING_MODE = "private_browsing_mode"
|
||||
const val EXTRA_DELETE_PRIVATE_TABS = "notification_delete_and_open"
|
||||
const val EXTRA_OPENED_FROM_NOTIFICATION = "notification_open"
|
||||
const val EXTRA_FINISH_ONBOARDING = "finishonboarding"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue