2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

Bug 1854123 - Show the "find more add-ons" button unconditionally in Fenix

This commit is contained in:
William Durand 2023-09-25 10:09:12 +02:00 committed by mergify[bot]
parent 4a31ce1b52
commit 2105050c26
2 changed files with 2 additions and 5 deletions

View File

@ -274,6 +274,6 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management)
// This is locale-less on purpose so that the content negotiation happens on the AMO side because the current
// user language might not be supported by AMO and/or the language might not be exactly what AMO is expecting
// (e.g. `en` instead of `en-US`).
private const val AMO_HOMEPAGE_FOR_ANDROID = "https://addons.mozilla.org/android/"
private const val AMO_HOMEPAGE_FOR_ANDROID = BuildConfig.AMO_BASE_URL + "/android/"
}
}

View File

@ -7,7 +7,6 @@ package org.mozilla.fenix.addons
import androidx.navigation.NavController
import mozilla.components.feature.addons.Addon
import mozilla.components.feature.addons.ui.AddonsManagerAdapterDelegate
import org.mozilla.fenix.Config
import org.mozilla.fenix.R
import org.mozilla.fenix.ext.navigateSafe
@ -36,9 +35,7 @@ class AddonsManagementView(
showNotYetSupportedAddonFragment(unsupportedAddons)
}
override fun shouldShowFindMoreAddonsButton(): Boolean {
return !Config.channel.isRelease
}
override fun shouldShowFindMoreAddonsButton(): Boolean = true
override fun onFindMoreAddonsButtonClicked() {
onMoreAddonsButtonClicked()