diff --git a/app/src/main/java/com/github/kr328/clash/SupportActivity.kt b/app/src/main/java/com/github/kr328/clash/SupportActivity.kt
index 817f4cf..ecb9a1e 100644
--- a/app/src/main/java/com/github/kr328/clash/SupportActivity.kt
+++ b/app/src/main/java/com/github/kr328/clash/SupportActivity.kt
@@ -3,6 +3,7 @@ package com.github.kr328.clash
import android.content.Intent
import android.net.Uri
import android.os.Bundle
+import android.text.Html
import kotlinx.android.synthetic.main.activity_support.*
class SupportActivity : BaseActivity() {
@@ -13,6 +14,11 @@ class SupportActivity : BaseActivity() {
setSupportActionBar(toolbar)
commonUi.build {
+ tips {
+ icon = getDrawable(R.drawable.ic_info)
+ title = Html.fromHtml(getString(R.string.tips_support), Html.FROM_HTML_MODE_LEGACY)
+ }
+
category(text = getString(R.string.sources))
option(
@@ -38,7 +44,7 @@ class SupportActivity : BaseActivity() {
}
}
- category(text = getString(R.string.contacts))
+ category(text = getString(R.string.feedback))
option(
title = getString(R.string.github_issues),
@@ -52,9 +58,11 @@ class SupportActivity : BaseActivity() {
}
}
- if (resources.configuration.locales.get(0)
- .language.equals("zh", true)
- ) {
+ val firstLanguage = resources.configuration.locales.get(0).language
+
+ if (firstLanguage.equals("zh", true)) {
+ category(getString(R.string.donate))
+
option(
title = getString(R.string.telegram_channel),
summary = getString(R.string.telegram_channel_url)
diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml
index bcb0b19..81f38b3 100644
--- a/app/src/main/res/values-zh/strings.xml
+++ b/app/src/main/res/values-zh/strings.xml
@@ -117,7 +117,7 @@
反转
Clash
Clash for Android
- 联系我们
+ 反馈
E-Mail
源代码
Telegram 频道
@@ -134,4 +134,6 @@
大于15分钟
载入中
复制配置
+ 免费开源的项目, 不提供任何代理服务
请务必不要反馈非应用自身引起的问题]]>
+ 捐赠
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 041f5f9..c9e4378 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -154,15 +154,17 @@
https://github.com/Dreamacro/clash
https://github.com/Kr328/ClashForAndroid
- Contacts
+ Feedback
E-Mail
+ Donate
Github Issues
Telegram Channel
kr328app@outlook.com
https://github.com/Kr328/ClashForAndroid/issues
https://t.me/clash_for_android_channel
-
+
Clash Config which contains
Proxies, Proxy Groups and Rules]]>
+ free and open source
It does NOT provide any proxy services]]>
Google Play, but the app that generated the copy did not handle Split Apks correctly
This means you get part of the app, not all of it]]>
Learn more about Split Apks
diff --git a/design/src/main/java/com/github/kr328/clash/design/common/CommonUiBuilder.kt b/design/src/main/java/com/github/kr328/clash/design/common/CommonUiBuilder.kt
index 7d1341d..b55e2e8 100644
--- a/design/src/main/java/com/github/kr328/clash/design/common/CommonUiBuilder.kt
+++ b/design/src/main/java/com/github/kr328/clash/design/common/CommonUiBuilder.kt
@@ -73,7 +73,7 @@ class CommonUiBuilder(val screen: CommonUiScreen) {
fun tips(
title: String = "",
icon: Drawable? = null,
- setup: Tips.() -> Unit
+ setup: Tips.() -> Unit = {}
) {
val tips = Tips(screen)