This commit is contained in:
kunfei 2023-03-30 19:08:35 +08:00
parent 62159644e7
commit 604dfc48f8
12 changed files with 40 additions and 5 deletions

View File

@ -94,6 +94,11 @@
app:iconSpaceReserved="false"
app:layout="@layout/view_preference_category">
<io.legado.app.lib.prefs.Preference
android:key="privacyPolicy"
android:title="@string/privacy_policy"
app:iconSpaceReserved="false" />
<io.legado.app.lib.prefs.Preference
android:key="crashLog"
android:title="@string/crash_log"

View File

@ -1,5 +1,3 @@
**是否同意本协议**
* 本应用没有服务端,不收集任何用户信息,只采用了Google Firebase收集崩溃报告和性能报告.
* 本应用网络同步和备份采用webDav协议,由用户自己提供同步服务.
* 存储权限用来打开本地文件和本地备份恢复.

View File

@ -72,6 +72,7 @@ class AboutFragment : PreferenceFragmentCompat() {
"home_page" -> 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()

View File

@ -160,16 +160,16 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(),
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)
}

View File

@ -1084,4 +1084,7 @@
<string name="delete_alert">删除提醒</string>
<string name="no_book_found_bookshelf">No book found in bookshelf, import again ?</string>
<string name="archive_not_found">Can not find archive selected, continue to download ?</string>
<string name="privacy_policy">用户隐私与协议</string>
<string name="agree">同意</string>
<string name="refuse">拒绝</string>
</resources>

View File

@ -1087,4 +1087,7 @@
<string name="delete_alert">删除提醒</string>
<string name="no_book_found_bookshelf">No book found in bookshelf, import again ?</string>
<string name="archive_not_found">Can not find archive selected, continue to download ?</string>
<string name="privacy_policy">用户隐私与协议</string>
<string name="agree">同意</string>
<string name="refuse">拒绝</string>
</resources>

View File

@ -1087,4 +1087,7 @@
<string name="delete_alert">删除提醒</string>
<string name="no_book_found_bookshelf">No book found in bookshelf, import again ?</string>
<string name="archive_not_found">Can not find archive selected, continue to download ?</string>
<string name="privacy_policy">用户隐私与协议</string>
<string name="agree">同意</string>
<string name="refuse">拒绝</string>
</resources>

View File

@ -1084,4 +1084,7 @@
<string name="delete_alert">删除提醒</string>
<string name="no_book_found_bookshelf">未在书架上找到所选书籍, 是否重新导入?</string>
<string name="archive_not_found">未能在书籍保存目录找到压缩文件,是否重新导入?</string>
<string name="privacy_policy">用户隐私与协议</string>
<string name="agree">同意</string>
<string name="refuse">拒绝</string>
</resources>

View File

@ -1086,4 +1086,7 @@
<string name="delete_alert">删除提醒</string>
<string name="no_book_found_bookshelf">未在书架上找到所选书籍, 是否重新导入?</string>
<string name="archive_not_found">未能在书籍保存目录找到压缩文件,是否重新导入?</string>
<string name="privacy_policy">用户隐私与协议</string>
<string name="agree">同意</string>
<string name="refuse">拒绝</string>
</resources>

View File

@ -1086,4 +1086,7 @@
<string name="delete_alert">删除提醒</string>
<string name="no_book_found_bookshelf">未在书架上找到所选书籍, 是否重新导入?</string>
<string name="archive_not_found">未能在书籍保存目录找到压缩文件,是否重新导入?</string>
<string name="privacy_policy">用户隐私与协议</string>
<string name="agree">同意</string>
<string name="refuse">拒绝</string>
</resources>

View File

@ -1087,4 +1087,7 @@
<string name="delete_alert">删除提醒</string>
<string name="no_book_found_bookshelf">No book found in bookshelf, import again ?</string>
<string name="archive_not_found">Can not find archive selected, continue to download ?</string>
<string name="privacy_policy">用户隐私与协议</string>
<string name="agree">同意</string>
<string name="refuse">拒绝</string>
</resources>

View File

@ -88,6 +88,11 @@
app:iconSpaceReserved="false"
app:layout="@layout/view_preference_category">
<io.legado.app.lib.prefs.Preference
android:key="privacyPolicy"
android:title="@string/privacy_policy"
app:iconSpaceReserved="false" />
<io.legado.app.lib.prefs.Preference
android:key="crashLog"
android:title="@string/crash_log"
@ -98,6 +103,11 @@
android:title="@string/license"
app:iconSpaceReserved="false" />
<io.legado.app.lib.prefs.Preference
android:key="license"
android:title="@string/license"
app:iconSpaceReserved="false" />
<io.legado.app.lib.prefs.Preference
android:key="disclaimer"
android:title="@string/disclaimer"