From aad19e4bce5732e77a5649542edb94e503b9e6ca Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 14 Dec 2021 09:03:01 +0100 Subject: [PATCH] code qual --- .../vector/app/features/analytics/plan/PerformanceTimer.kt | 7 +++++++ .../analytics/ui/consent/AnalyticsOptInFragment.kt | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/analytics/plan/PerformanceTimer.kt b/vector/src/main/java/im/vector/app/features/analytics/plan/PerformanceTimer.kt index 89ea784722..34d0297f2d 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/plan/PerformanceTimer.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/plan/PerformanceTimer.kt @@ -48,30 +48,37 @@ data class PerformanceTimer( * The time spent parsing the response from an initial /sync request. */ InitialSyncParsing, + /** * The time spent waiting for a response to an initial /sync request. */ InitialSyncRequest, + /** * The time taken to display an event in the timeline that was opened from a notification. */ NotificationsOpenEvent, + /** * The duration of a regular /sync request when resuming the app. */ StartupIncrementalSync, + /** * The duration of an initial /sync request during startup (if the store has been wiped). */ StartupInitialSync, + /** * How long the app launch screen is displayed for. */ StartupLaunchScreen, + /** * The time to preload data in the MXStore on iOS. */ StartupStorePreload, + /** * The time to load all data from the store (including StartupStorePreload time). */ diff --git a/vector/src/main/java/im/vector/app/features/analytics/ui/consent/AnalyticsOptInFragment.kt b/vector/src/main/java/im/vector/app/features/analytics/ui/consent/AnalyticsOptInFragment.kt index 1c91af063f..f112ba4659 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/ui/consent/AnalyticsOptInFragment.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/ui/consent/AnalyticsOptInFragment.kt @@ -30,8 +30,8 @@ import im.vector.app.core.utils.openUrlInChromeCustomTab import im.vector.app.databinding.FragmentAnalyticsOptinBinding import javax.inject.Inject -class AnalyticsOptInFragment @Inject constructor( -) : VectorBaseFragment(), +class AnalyticsOptInFragment @Inject constructor() : + VectorBaseFragment(), OnBackPressed { // Share the view model with the Activity so that the Activity