Loading app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt +1 −4 Original line number Diff line number Diff line Loading @@ -151,10 +151,7 @@ internal class ReleaseMetricController( private fun isInitialized(type: MetricServiceType): Boolean = initialized.contains(type) private fun isTelemetryEnabled(type: MetricServiceType): Boolean = when (type) { MetricServiceType.Data -> isDataTelemetryEnabled() MetricServiceType.Marketing -> isMarketingDataTelemetryEnabled() } private fun isTelemetryEnabled(@Suppress("UNUSED_PARAMETER") type: MetricServiceType): Boolean = false @Suppress("LongMethod", "MaxLineLength") private fun Fact.toEvent(): Event? = when { Loading Loading
app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt +1 −4 Original line number Diff line number Diff line Loading @@ -151,10 +151,7 @@ internal class ReleaseMetricController( private fun isInitialized(type: MetricServiceType): Boolean = initialized.contains(type) private fun isTelemetryEnabled(type: MetricServiceType): Boolean = when (type) { MetricServiceType.Data -> isDataTelemetryEnabled() MetricServiceType.Marketing -> isMarketingDataTelemetryEnabled() } private fun isTelemetryEnabled(@Suppress("UNUSED_PARAMETER") type: MetricServiceType): Boolean = false @Suppress("LongMethod", "MaxLineLength") private fun Fact.toEvent(): Event? = when { Loading