2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-13 07:10:28 +00:00

Bug 1867297 - Remove the use of BLOCKED_PERMISSIONS

This commit is contained in:
William Durand 2023-11-30 14:55:23 +01:00 committed by mergify[bot]
parent a342064ccc
commit 95300eee12

View File

@ -176,14 +176,14 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management)
binding?.let { announceForAccessibility(it.addonProgressOverlay.addOnsOverlayText.text) } binding?.let { announceForAccessibility(it.addonProgressOverlay.addOnsOverlayText.text) }
} }
val installOperation = provideAddonManger().installAddon( val installOperation = provideAddonManger().installAddon(
addon, url = addon.downloadUrl,
onSuccess = { onSuccess = {
runIfFragmentIsAttached { runIfFragmentIsAttached {
adapter?.updateAddon(it) adapter?.updateAddon(it)
binding?.addonProgressOverlay?.overlayCardView?.visibility = View.GONE binding?.addonProgressOverlay?.overlayCardView?.visibility = View.GONE
} }
}, },
onError = { _, _ -> onError = { _ ->
binding?.addonProgressOverlay?.overlayCardView?.visibility = View.GONE binding?.addonProgressOverlay?.overlayCardView?.visibility = View.GONE
}, },
) )