... |
... |
@@ -378,35 +378,8 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorAn |
378
|
378
|
}
|
379
|
379
|
}
|
380
|
380
|
|
381
|
|
- SplashScreenManager(
|
382
|
|
- splashScreenOperation = if (FxNimbus.features.splashScreen.value().offTrainOnboarding) {
|
383
|
|
- ApplyExperimentsOperation(
|
384
|
|
- storage = DefaultExperimentsOperationStorage(components.settings),
|
385
|
|
- nimbus = components.nimbus.sdk,
|
386
|
|
- )
|
387
|
|
- } else {
|
388
|
|
- FetchExperimentsOperation(
|
389
|
|
- storage = DefaultExperimentsOperationStorage(components.settings),
|
390
|
|
- nimbus = components.nimbus.sdk,
|
391
|
|
- )
|
392
|
|
- },
|
393
|
|
- scope = lifecycleScope,
|
394
|
|
- splashScreenTimeout = FxNimbus.features.splashScreen.value().maximumDurationMs.toLong(),
|
395
|
|
- isDeviceSupported = { Build.VERSION.SDK_INT > Build.VERSION_CODES.M },
|
396
|
|
- storage = DefaultSplashScreenStorage(components.settings),
|
397
|
|
- showSplashScreen = { installSplashScreen().setKeepOnScreenCondition(it) },
|
398
|
|
- onSplashScreenFinished = { result ->
|
399
|
|
- if (result.sendTelemetry) {
|
400
|
|
- SplashScreen.firstLaunchExtended.record(
|
401
|
|
- SplashScreen.FirstLaunchExtendedExtra(dataFetched = result.wasDataFetched),
|
402
|
|
- )
|
403
|
|
- }
|
404
|
|
-
|
405
|
|
- if (savedInstanceState == null && shouldShowOnboarding) {
|
406
|
|
- navHost.navController.navigate(NavGraphDirections.actionGlobalOnboarding())
|
407
|
|
- }
|
408
|
|
- },
|
409
|
|
- ).showSplashScreen()
|
|
381
|
+ // tor-browser#43730: Do not delay splash screen
|
|
382
|
+ // to fetch or apply Nimbus experiments.
|
410
|
383
|
|
411
|
384
|
lifecycleScope.launch {
|
412
|
385
|
val debugSettingsRepository = DefaultDebugSettingsRepository(
|