diff --git a/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt b/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt index 0eff42f3bf..48c9a91cbd 100644 --- a/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt @@ -176,14 +176,14 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management) binding?.let { announceForAccessibility(it.addonProgressOverlay.addOnsOverlayText.text) } } val installOperation = provideAddonManger().installAddon( - addon, + url = addon.downloadUrl, onSuccess = { runIfFragmentIsAttached { adapter?.updateAddon(it) binding?.addonProgressOverlay?.overlayCardView?.visibility = View.GONE } }, - onError = { _, _ -> + onError = { _ -> binding?.addonProgressOverlay?.overlayCardView?.visibility = View.GONE }, )