Bug 1868378 - Indicate the installation method when installing an add-on.

fenix/122.0
Arturo Mejia 7 months ago committed by mergify[bot]
parent 2564545160
commit 2a419d00b9

@ -20,6 +20,7 @@ import androidx.recyclerview.widget.LinearLayoutManager
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.launch
import mozilla.components.concept.engine.webextension.InstallationMethod
import mozilla.components.feature.addons.Addon
import mozilla.components.feature.addons.AddonManager
import mozilla.components.feature.addons.AddonManagerException
@ -177,6 +178,7 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management)
}
val installOperation = provideAddonManger().installAddon(
url = addon.downloadUrl,
installationMethod = InstallationMethod.MANAGER,
onSuccess = {
runIfFragmentIsAttached {
adapter?.updateAddon(it)

Loading…
Cancel
Save