mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/11656 - Adds addon user attributes to leanplum
This commit is contained in:
parent
f175288aa7
commit
af34cbd92b
@ -5,6 +5,7 @@
|
||||
package org.mozilla.fenix.components.metrics
|
||||
|
||||
import androidx.annotation.VisibleForTesting
|
||||
import com.leanplum.Leanplum
|
||||
import mozilla.components.browser.awesomebar.facts.BrowserAwesomeBarFacts
|
||||
import mozilla.components.browser.menu.facts.BrowserMenuFacts
|
||||
import mozilla.components.browser.toolbar.facts.ToolbarFacts
|
||||
@ -193,6 +194,7 @@ internal class ReleaseMetricController(
|
||||
if (installedAddons is List<*>) {
|
||||
Addons.installedAddons.set(installedAddons.map { it.toString() })
|
||||
Addons.hasInstalledAddons.set(installedAddons.size > 0)
|
||||
Leanplum.setUserAttributes(mapOf("installed_addons" to installedAddons.size))
|
||||
}
|
||||
}
|
||||
|
||||
@ -200,6 +202,7 @@ internal class ReleaseMetricController(
|
||||
if (enabledAddons is List<*>) {
|
||||
Addons.enabledAddons.set(enabledAddons.map { it.toString() })
|
||||
Addons.hasEnabledAddons.set(enabledAddons.size > 0)
|
||||
Leanplum.setUserAttributes(mapOf("enabled_addons" to enabledAddons.size))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user