[fenix] 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".
pull/600/head
Will Hawkins 5 years ago committed by Jeff Boek
parent c324abaa7b
commit f92865d320

@ -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…
Cancel
Save