mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-11 13:11:01 +00:00
Update metrics when an addon is installed or enabled (#17669)
This commit is contained in:
parent
c50dbb5bb9
commit
43b0b27819
@ -29,6 +29,7 @@ import mozilla.components.feature.addons.ui.AddonInstallationDialogFragment
|
|||||||
import mozilla.components.feature.addons.ui.AddonsManagerAdapter
|
import mozilla.components.feature.addons.ui.AddonsManagerAdapter
|
||||||
import mozilla.components.feature.addons.ui.PermissionsDialogFragment
|
import mozilla.components.feature.addons.ui.PermissionsDialogFragment
|
||||||
import mozilla.components.feature.addons.ui.translateName
|
import mozilla.components.feature.addons.ui.translateName
|
||||||
|
import org.mozilla.fenix.GleanMetrics.Addons
|
||||||
import org.mozilla.fenix.R
|
import org.mozilla.fenix.R
|
||||||
import org.mozilla.fenix.components.FenixSnackbar
|
import org.mozilla.fenix.components.FenixSnackbar
|
||||||
import org.mozilla.fenix.components.metrics.Event
|
import org.mozilla.fenix.components.metrics.Event
|
||||||
@ -282,6 +283,7 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management)
|
|||||||
adapter?.updateAddon(it)
|
adapter?.updateAddon(it)
|
||||||
addonProgressOverlay?.visibility = View.GONE
|
addonProgressOverlay?.visibility = View.GONE
|
||||||
showInstallationDialog(it)
|
showInstallationDialog(it)
|
||||||
|
Addons.hasInstalledAddons.set(true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onError = { _, e ->
|
onError = { _, e ->
|
||||||
|
@ -21,6 +21,7 @@ import kotlinx.coroutines.launch
|
|||||||
import mozilla.components.feature.addons.Addon
|
import mozilla.components.feature.addons.Addon
|
||||||
import mozilla.components.feature.addons.AddonManagerException
|
import mozilla.components.feature.addons.AddonManagerException
|
||||||
import mozilla.components.feature.addons.ui.translateName
|
import mozilla.components.feature.addons.ui.translateName
|
||||||
|
import org.mozilla.fenix.GleanMetrics.Addons
|
||||||
import org.mozilla.fenix.HomeActivity
|
import org.mozilla.fenix.HomeActivity
|
||||||
import org.mozilla.fenix.R
|
import org.mozilla.fenix.R
|
||||||
import org.mozilla.fenix.ext.components
|
import org.mozilla.fenix.ext.components
|
||||||
@ -127,6 +128,7 @@ class InstalledAddonDetailsFragment : Fragment() {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Addons.hasEnabledAddons.set(true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onError = {
|
onError = {
|
||||||
|
Loading…
Reference in New Issue
Block a user