From 032ca003cdb9c5f89e76234215b2446cf449f398 Mon Sep 17 00:00:00 2001 From: Michael Comella Date: Tue, 21 Jul 2020 13:36:06 -0700 Subject: [PATCH] [fenix] No issue: extract initVisualCompletenessQueueAndQueueTasks. This refactor, done entirely by IDE, is a no-op cleanup. --- app/src/main/java/org/mozilla/fenix/FenixApplication.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/FenixApplication.kt b/app/src/main/java/org/mozilla/fenix/FenixApplication.kt index 3088d54284..ac8800818f 100644 --- a/app/src/main/java/org/mozilla/fenix/FenixApplication.kt +++ b/app/src/main/java/org/mozilla/fenix/FenixApplication.kt @@ -151,10 +151,12 @@ open class FenixApplication : LocaleAwareApplication() { // runStorageMaintenance() // } + initVisualCompletenessQueueAndQueueTasks() + } + + private fun initVisualCompletenessQueueAndQueueTasks() { val taskQueue = components.performance.visualCompletenessQueue - registerActivityLifecycleCallbacks( - PerformanceActivityLifecycleCallbacks(taskQueue) - ) + registerActivityLifecycleCallbacks(PerformanceActivityLifecycleCallbacks(taskQueue)) // Enable the service-experiments component to be initialized after visual completeness // for performance wins.