From 2105050c262481038f67b7d05dc3384c1e2a3868 Mon Sep 17 00:00:00 2001 From: William Durand Date: Mon, 25 Sep 2023 10:09:12 +0200 Subject: [PATCH] Bug 1854123 - Show the "find more add-ons" button unconditionally in Fenix --- .../org/mozilla/fenix/addons/AddonsManagementFragment.kt | 2 +- .../java/org/mozilla/fenix/addons/AddonsManagementView.kt | 5 +---- 2 files changed, 2 insertions(+), 5 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 54a2a69ffd..d3c2bee71a 100644 --- a/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementFragment.kt @@ -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/" } } diff --git a/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementView.kt b/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementView.kt index 117c3f8e50..edb16c46b5 100644 --- a/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementView.kt +++ b/app/src/main/java/org/mozilla/fenix/addons/AddonsManagementView.kt @@ -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()