mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] Add default topsite 58 for MozillaOnline builds
This commit is contained in:
parent
5ce4a31be5
commit
e78754d598
@ -354,6 +354,13 @@ class Core(
|
|||||||
SupportUtils.PDD_URL
|
SupportUtils.PDD_URL
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
defaultTopSites.add(
|
||||||
|
Pair(
|
||||||
|
context.getString(R.string.default_top_site_tc),
|
||||||
|
SupportUtils.TC_URL
|
||||||
|
)
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
defaultTopSites.add(
|
defaultTopSites.add(
|
||||||
Pair(
|
Pair(
|
||||||
|
@ -85,6 +85,9 @@ class TopSiteItemViewHolder(
|
|||||||
SupportUtils.PDD_URL -> {
|
SupportUtils.PDD_URL -> {
|
||||||
binding.faviconImage.setImageDrawable(getDrawable(itemView.context, R.drawable.ic_pdd))
|
binding.faviconImage.setImageDrawable(getDrawable(itemView.context, R.drawable.ic_pdd))
|
||||||
}
|
}
|
||||||
|
SupportUtils.TC_URL -> {
|
||||||
|
binding.faviconImage.setImageDrawable(getDrawable(itemView.context, R.drawable.ic_tc))
|
||||||
|
}
|
||||||
else -> {
|
else -> {
|
||||||
itemView.context.components.core.icons.loadIntoView(binding.faviconImage, topSite.url)
|
itemView.context.components.core.icons.loadIntoView(binding.faviconImage, topSite.url)
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,7 @@ object SupportUtils {
|
|||||||
"AEwdRGF0cMhIAVB5ZFAETBVAaXRwyFQdcKydLSUpaCEtYFAIXN2UrWCUyIgdVK1slXVZaCCtZFAMWDg%3D%3D"
|
"AEwdRGF0cMhIAVB5ZFAETBVAaXRwyFQdcKydLSUpaCEtYFAIXN2UrWCUyIgdVK1slXVZaCCtZFAMWDg%3D%3D"
|
||||||
const val PDD_URL = "https://mobile.yangkeduo.com/duo_cms_mall.html?pid=13289095_194240604&" +
|
const val PDD_URL = "https://mobile.yangkeduo.com/duo_cms_mall.html?pid=13289095_194240604&" +
|
||||||
"cpsSign=CM_210309_13289095_194240604_8bcfd56d5db3c43d983014d2658ec26e&duoduo_type=2"
|
"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_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"
|
const val GOOGLE_XX_URL = "https://www.google.com/webhp?client=firefox-b-m&channel=ts"
|
||||||
|
|
||||||
|
BIN
app/src/main/res/drawable/ic_tc.png
Normal file
BIN
app/src/main/res/drawable/ic_tc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
@ -27,6 +27,8 @@
|
|||||||
<string name="default_top_site_jd">京东</string>
|
<string name="default_top_site_jd">京东</string>
|
||||||
<!-- Default title for pinned JD top site that links to PDD home page -->
|
<!-- Default title for pinned JD top site that links to PDD home page -->
|
||||||
<string name="default_top_site_pdd">拼多多</string>
|
<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-->
|
<!-- FxA server switch-->
|
||||||
<!-- Switch Preference for domestic China/global fxa server -->
|
<!-- Switch Preference for domestic China/global fxa server -->
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
<string name="default_top_site_jd">JD</string>
|
<string name="default_top_site_jd">JD</string>
|
||||||
<!-- Default title for pinned JD top site that links to PDD home page -->
|
<!-- Default title for pinned JD top site that links to PDD home page -->
|
||||||
<string name="default_top_site_pdd">PDD</string>
|
<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-->
|
<!-- FxA server switch-->
|
||||||
<!-- Switch Preference for domestic China/global fxa server -->
|
<!-- Switch Preference for domestic China/global fxa server -->
|
||||||
|
Loading…
Reference in New Issue
Block a user