From 95300eee127f9c3221a2587ae74dbc07c7a31698 Mon Sep 17 00:00:00 2001 From: William Durand Date: Thu, 30 Nov 2023 14:55:23 +0100 Subject: [PATCH] Bug 1867297 - Remove the use of `BLOCKED_PERMISSIONS` --- .../java/org/mozilla/fenix/addons/AddonsManagementFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }, )