Update top sites to add PDD for MozillaOnline builds (#18615)

upstream-sync
rxumoz 3 years ago committed by GitHub
parent a539f69cb2
commit 46af52d254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -335,6 +335,13 @@ class Core(
SupportUtils.JD_URL
)
)
defaultTopSites.add(
Pair(
context.getString(R.string.default_top_site_pdd),
SupportUtils.PDD_URL
)
)
} else {
defaultTopSites.add(
Pair(

@ -80,6 +80,9 @@ class TopSiteItemViewHolder(
SupportUtils.JD_URL -> {
favicon_image.setImageDrawable(getDrawable(itemView.context, R.drawable.ic_jd))
}
SupportUtils.PDD_URL -> {
favicon_image.setImageDrawable(getDrawable(itemView.context, R.drawable.ic_pdd))
}
else -> {
itemView.context.components.core.icons.loadIntoView(favicon_image, topSite.url)
}

@ -32,6 +32,8 @@ object SupportUtils {
"?e=&p=AyIGZRprFDJWWA1FBCVbV0IUWVALHFRBEwQAQB1AWQkFVUVXfFkAF14lRFRbJXstVWR3WQ1rJ08AZnhS" +
"HDJBYh4LZR9eEAMUBlccWCUBEQZRGFoXCxc3ZRteJUl8BmUZWhQ" +
"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 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: 13 KiB

@ -19,4 +19,12 @@
<string name="privacy_notice_positive_button">同意并继续</string>
<!-- Privacy Notice neutral button-->
<string name="privacy_notice_neutral_button">退出应用</string>
</resources>
<!-- Topsites-->
<!-- Default title for pinned Baidu top site that links to Baidu home page -->
<string name="default_top_site_baidu">百度</string>
<!-- Default title for pinned JD top site that links to JD home page -->
<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>
</resources>

@ -23,10 +23,6 @@
<!-- No Private Tabs Message Description -->
<string name="no_private_tabs_description">您的隐私标签页将显示于此。</string>
<!-- Default title for pinned Baidu top site that links to Baidu home page -->
<string name="default_top_site_baidu">百度</string>
<!-- Default title for pinned JD top site that links to JD home page -->
<string name="default_top_site_jd">京东</string>
<!-- Message announced to the user when tab tray is selected with 1 tab -->
<string name="open_tab_tray_single">打开了 1 个标签页,点击即可切换。</string>
<!-- Message announced to the user when tab tray is selected with 0 or 2+ tabs -->

@ -19,4 +19,12 @@
<string name="privacy_notice_positive_button">Agree and Continue</string>
<!-- Privacy Notice neutral button-->
<string name="privacy_notice_neutral_button">Exit the App</string>
</resources>
<!-- Topsites-->
<!-- Default title for pinned Baidu top site that links to Baidu home page -->
<string name="default_top_site_baidu">Baidu</string>
<!-- Default title for pinned JD top site that links to JD home page -->
<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>
</resources>

@ -19,10 +19,6 @@
<string name="no_open_tabs_description">Your open tabs will be shown here.</string>
<!-- No Private Tabs Message Description -->
<string name="no_private_tabs_description">Your private tabs will be shown here.</string>
<!-- Default title for pinned Baidu top site that links to Baidu home page -->
<string name="default_top_site_baidu">Baidu</string>
<!-- Default title for pinned JD top site that links to JD home page -->
<string name="default_top_site_jd">JD</string>
<!-- Message announced to the user when tab tray is selected with 1 tab -->
<string name="open_tab_tray_single">1 open tab. Tap to switch tabs.</string>
<!-- Message announced to the user when tab tray is selected with 0 or 2+ tabs -->

Loading…
Cancel
Save