mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/15596 - Removes upgrade faq link from fennec builds (https://github.com/mozilla-mobile/fenix/pull/15643)
This commit is contained in:
parent
19b4a4ef5b
commit
81556c956a
@ -11,7 +11,6 @@ import androidx.core.net.toUri
|
||||
import mozilla.components.support.ktx.android.content.appVersionName
|
||||
import mozilla.components.support.ktx.android.content.getColorFromAttr
|
||||
import org.mozilla.fenix.BuildConfig
|
||||
import org.mozilla.fenix.Config
|
||||
import org.mozilla.fenix.IntentReceiverActivity
|
||||
import org.mozilla.fenix.R
|
||||
import org.mozilla.fenix.settings.account.AuthIntentReceiverActivity
|
||||
@ -39,7 +38,6 @@ object SupportUtils {
|
||||
SET_AS_DEFAULT_BROWSER("set-firefox-preview-default"),
|
||||
SEARCH_SUGGESTION("how-search-firefox-preview"),
|
||||
CUSTOM_SEARCH_ENGINES("custom-search-engines"),
|
||||
UPGRADE_FAQ("firefox-preview-upgrade-faqs"),
|
||||
SYNC_SETUP("how-set-firefox-sync-firefox-preview"),
|
||||
QR_CAMERA_ACCESS("qr-camera-access")
|
||||
}
|
||||
@ -85,11 +83,7 @@ object SupportUtils {
|
||||
return "https://www.mozilla.org/$langTag/$path"
|
||||
}
|
||||
|
||||
fun getWhatsNewUrl(context: Context) = if (Config.channel.isFennec) {
|
||||
getGenericSumoURLForTopic(SumoTopic.UPGRADE_FAQ)
|
||||
} else {
|
||||
getSumoURLForTopic(context, SumoTopic.WHATS_NEW)
|
||||
}
|
||||
fun getWhatsNewUrl(context: Context) = getSumoURLForTopic(context, SumoTopic.WHATS_NEW)
|
||||
|
||||
fun createCustomTabIntent(context: Context, url: String): Intent = CustomTabsIntent.Builder()
|
||||
.setInstantAppsEnabled(false)
|
||||
|
Loading…
Reference in New Issue
Block a user