diff --git a/app/src/app/res/xml/about.xml b/app/src/app/res/xml/about.xml
index b62f4a2f4..5b117e332 100644
--- a/app/src/app/res/xml/about.xml
+++ b/app/src/app/res/xml/about.xml
@@ -94,6 +94,11 @@
app:iconSpaceReserved="false"
app:layout="@layout/view_preference_category">
+
+
openUrl(R.string.home_page_url)
"license" -> showMdFile(getString(R.string.license), "LICENSE.md")
"disclaimer" -> showMdFile(getString(R.string.disclaimer), "disclaimer.md")
+ "privacyPolicy" -> showMdFile(getString(R.string.privacy_policy), "privacyPolicy.md")
"qq" -> showQqGroups()
"gzGzh" -> requireContext().sendToClip(getString(R.string.legado_gzh))
"crashLog" -> showCrashLogs()
diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt
index e7d615399..2a471f983 100644
--- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt
+++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt
@@ -160,16 +160,16 @@ class MainActivity : VMBaseActivity(),
return@suspendCoroutine
}
val privacyPolicy = String(assets.open("privacyPolicy.md").readBytes())
- alert("用户隐私与协议", privacyPolicy) {
+ alert(getString(R.string.privacy_policy), privacyPolicy) {
noButton {
finish()
block.resume(false)
}
- yesButton {
+ positiveButton(R.string.agree) {
LocalConfig.privacyPolicyOk = true
block.resume(true)
}
- onCancelled {
+ negativeButton(R.string.refuse) {
finish()
block.resume(false)
}
diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml
index 7c44c70bb..7f7c6bce9 100644
--- a/app/src/main/res/values-es-rES/strings.xml
+++ b/app/src/main/res/values-es-rES/strings.xml
@@ -1084,4 +1084,7 @@
删除提醒
No book found in bookshelf, import again ?
Can not find archive selected, continue to download ?
+ 用户隐私与协议
+ 同意
+ 拒绝
diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml
index 6fca90a60..13ecca532 100644
--- a/app/src/main/res/values-ja-rJP/strings.xml
+++ b/app/src/main/res/values-ja-rJP/strings.xml
@@ -1087,4 +1087,7 @@
删除提醒
No book found in bookshelf, import again ?
Can not find archive selected, continue to download ?
+ 用户隐私与协议
+ 同意
+ 拒绝
diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml
index 69bcc61bc..cce4dfc4f 100644
--- a/app/src/main/res/values-pt-rBR/strings.xml
+++ b/app/src/main/res/values-pt-rBR/strings.xml
@@ -1087,4 +1087,7 @@
删除提醒
No book found in bookshelf, import again ?
Can not find archive selected, continue to download ?
+ 用户隐私与协议
+ 同意
+ 拒绝
diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml
index ba49aa66d..df680a68a 100644
--- a/app/src/main/res/values-zh-rHK/strings.xml
+++ b/app/src/main/res/values-zh-rHK/strings.xml
@@ -1084,4 +1084,7 @@
删除提醒
未在书架上找到所选书籍, 是否重新导入?
未能在书籍保存目录找到压缩文件,是否重新导入?
+ 用户隐私与协议
+ 同意
+ 拒绝
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index 8a453ec29..1689b7535 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -1086,4 +1086,7 @@
删除提醒
未在书架上找到所选书籍, 是否重新导入?
未能在书籍保存目录找到压缩文件,是否重新导入?
+ 用户隐私与协议
+ 同意
+ 拒绝
diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml
index d8b424f59..865b5419c 100644
--- a/app/src/main/res/values-zh/strings.xml
+++ b/app/src/main/res/values-zh/strings.xml
@@ -1086,4 +1086,7 @@
删除提醒
未在书架上找到所选书籍, 是否重新导入?
未能在书籍保存目录找到压缩文件,是否重新导入?
+ 用户隐私与协议
+ 同意
+ 拒绝
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index db99d95a6..192dc3bcf 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1087,4 +1087,7 @@
删除提醒
No book found in bookshelf, import again ?
Can not find archive selected, continue to download ?
+ 用户隐私与协议
+ 同意
+ 拒绝
diff --git a/app/src/main/res/xml/about.xml b/app/src/main/res/xml/about.xml
index 3844e0a04..7be2ec9ef 100644
--- a/app/src/main/res/xml/about.xml
+++ b/app/src/main/res/xml/about.xml
@@ -88,6 +88,11 @@
app:iconSpaceReserved="false"
app:layout="@layout/view_preference_category">
+
+
+
+