diff --git a/app/src/main/java/org/mozilla/fenix/components/Core.kt b/app/src/main/java/org/mozilla/fenix/components/Core.kt index fdb72a39ef..1606b4c54c 100644 --- a/app/src/main/java/org/mozilla/fenix/components/Core.kt +++ b/app/src/main/java/org/mozilla/fenix/components/Core.kt @@ -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( diff --git a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/topsites/TopSiteItemViewHolder.kt b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/topsites/TopSiteItemViewHolder.kt index 1477f84222..d4ade4c27e 100644 --- a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/topsites/TopSiteItemViewHolder.kt +++ b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/topsites/TopSiteItemViewHolder.kt @@ -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) } diff --git a/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt b/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt index 58c9893529..7fffad4984 100644 --- a/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt +++ b/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt @@ -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" diff --git a/app/src/main/res/drawable/ic_tc.png b/app/src/main/res/drawable/ic_tc.png new file mode 100644 index 0000000000..0ef692f297 Binary files /dev/null and b/app/src/main/res/drawable/ic_tc.png differ diff --git a/app/src/main/res/values-zh-rCN/mozonline_strings.xml b/app/src/main/res/values-zh-rCN/mozonline_strings.xml index 182ef30f47..6c64b61e93 100644 --- a/app/src/main/res/values-zh-rCN/mozonline_strings.xml +++ b/app/src/main/res/values-zh-rCN/mozonline_strings.xml @@ -27,6 +27,8 @@ 京东 拼多多 + + 58同城 diff --git a/app/src/main/res/values/mozonline_strings.xml b/app/src/main/res/values/mozonline_strings.xml index a9b52aba1e..290794d1e3 100644 --- a/app/src/main/res/values/mozonline_strings.xml +++ b/app/src/main/res/values/mozonline_strings.xml @@ -27,6 +27,8 @@ JD PDD + + 58