Add default topsite MeiTuan for MozillaOnline builds

upstream-sync
rxu 2 years ago committed by mergify[bot]
parent ee34b07ecc
commit 073fd89390

@ -365,6 +365,13 @@ class Core(
SupportUtils.TC_URL
)
)
defaultTopSites.add(
Pair(
context.getString(R.string.default_top_site_meituan),
SupportUtils.MEITUAN_URL
)
)
} else {
defaultTopSites.add(
Pair(

@ -88,6 +88,9 @@ class TopSiteItemViewHolder(
SupportUtils.TC_URL -> {
binding.faviconImage.setImageDrawable(getDrawable(itemView.context, R.drawable.ic_tc))
}
SupportUtils.MEITUAN_URL -> {
binding.faviconImage.setImageDrawable(getDrawable(itemView.context, R.drawable.ic_meituan))
}
else -> {
itemView.context.components.core.icons.loadIntoView(binding.faviconImage, topSite.url)
}

@ -35,6 +35,7 @@ object SupportUtils {
const val PDD_URL = "https://mobile.yangkeduo.com/duo_cms_mall.html?pid=13289095_194240604&" +
"cpsSign=CM_210309_13289095_194240604_8bcfd56d5db3c43d983014d2658ec26e&duoduo_type=2"
const val TC_URL = "https://jumpluna.58.com/i/29HU"
const val MEITUAN_URL = "https://tb.j5k6.com/6ZSOp"
const val GOOGLE_US_URL = "https://www.google.com/webhp?client=firefox-b-1-m&channel=ts"
const val GOOGLE_XX_URL = "https://www.google.com/webhp?client=firefox-b-m&channel=ts"

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

@ -30,6 +30,8 @@
<string name="default_top_site_pdd">拼多多</string>
<!-- Default title for pinned 58 top site that links to 58 home page -->
<string name="default_top_site_tc">58同城</string>
<!-- Default title for pinned meituan top site that links to 58 home page -->
<string name="default_top_site_meituan">美团</string>
<!-- FxA server switch-->
<!-- Switch Preference for domestic China/global fxa server -->

@ -30,6 +30,8 @@
<string name="default_top_site_pdd">PDD</string>
<!-- Default title for pinned 58 top site that links to 58 home page -->
<string name="default_top_site_tc">58</string>
<!-- Default title for pinned meituan top site that links to 58 home page -->
<string name="default_top_site_meituan">meituan</string>
<!-- FxA server switch-->
<!-- Switch Preference for domestic China/global fxa server -->

Loading…
Cancel
Save