Add default topsite 58 for MozillaOnline builds

This commit is contained in:
rxu 2021-09-16 15:50:59 +08:00 committed by mergify[bot]
parent 4e846b3cb6
commit e6395bff97
6 changed files with 15 additions and 0 deletions

View File

@ -354,6 +354,13 @@ class Core(
SupportUtils.PDD_URL
)
)
defaultTopSites.add(
Pair(
context.getString(R.string.default_top_site_tc),
SupportUtils.TC_URL
)
)
} else {
defaultTopSites.add(
Pair(

View File

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

View File

@ -34,6 +34,7 @@ object SupportUtils {
"AEwdRGF0cMhIAVB5ZFAETBVAaXRwyFQdcKydLSUpaCEtYFAIXN2UrWCUyIgdVK1slXVZaCCtZFAMWDg%3D%3D"
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 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: 3.0 KiB

View File

@ -27,6 +27,8 @@
<string name="default_top_site_jd">京东</string>
<!-- Default title for pinned JD top site that links to PDD home page -->
<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>
<!-- FxA server switch-->
<!-- Switch Preference for domestic China/global fxa server -->

View File

@ -27,6 +27,8 @@
<string name="default_top_site_jd">JD</string>
<!-- Default title for pinned JD top site that links to PDD home page -->
<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>
<!-- FxA server switch-->
<!-- Switch Preference for domestic China/global fxa server -->