[fenix] For https://github.com/mozilla-mobile/fenix/issues/25586 - Allow for localized sumo links for the https-only mode

pull/600/head
Mugurell 2 years ago committed by mergify[bot]
parent 0aff519ba1
commit 2e2a86fc32

@ -23,8 +23,6 @@ import org.mozilla.fenix.databinding.SettingsHttpsOnlyBinding
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.settings
private const val SUMO_URL = "https://support.mozilla.org/en-US/kb/https-only-mode-firefox-android"
/**
* Lets the user customize HTTPS-only mode.
*/
@ -104,7 +102,9 @@ class HttpsOnlyFragment : Fragment() {
override fun onClick(view: View) {
view.setOnClickListener {
(activity as HomeActivity).openToBrowserAndLoad(
searchTermOrURL = SUMO_URL,
searchTermOrURL = SupportUtils.getGenericSumoURLForTopic(
SupportUtils.SumoTopic.HTTPS_ONLY_MODE
),
newTab = true,
from = BrowserDirection.FromHttpsOnlyMode
)

@ -51,7 +51,8 @@ object SupportUtils {
SYNC_SETUP("how-set-firefox-sync-firefox-android"),
QR_CAMERA_ACCESS("qr-camera-access"),
SMARTBLOCK("smartblock-enhanced-tracking-protection"),
SPONSOR_PRIVACY("sponsor-privacy")
SPONSOR_PRIVACY("sponsor-privacy"),
HTTPS_ONLY_MODE("https-only-mode-firefox-android"),
}
enum class MozillaPage(internal val path: String) {

Loading…
Cancel
Save