mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-02 03:40:16 +00:00
For #25586 - Allow for localized sumo links for the https-only mode
This commit is contained in:
parent
ad222521be
commit
0ee911ea8c
@ -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…
Reference in New Issue
Block a user