mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
62159644e7
commit
604dfc48f8
@ -94,6 +94,11 @@
|
|||||||
app:iconSpaceReserved="false"
|
app:iconSpaceReserved="false"
|
||||||
app:layout="@layout/view_preference_category">
|
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
|
<io.legado.app.lib.prefs.Preference
|
||||||
android:key="crashLog"
|
android:key="crashLog"
|
||||||
android:title="@string/crash_log"
|
android:title="@string/crash_log"
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
**是否同意本协议**
|
|
||||||
|
|
||||||
* 本应用没有服务端,不收集任何用户信息,只采用了Google Firebase收集崩溃报告和性能报告.
|
* 本应用没有服务端,不收集任何用户信息,只采用了Google Firebase收集崩溃报告和性能报告.
|
||||||
* 本应用网络同步和备份采用webDav协议,由用户自己提供同步服务.
|
* 本应用网络同步和备份采用webDav协议,由用户自己提供同步服务.
|
||||||
* 存储权限用来打开本地文件和本地备份恢复.
|
* 存储权限用来打开本地文件和本地备份恢复.
|
||||||
|
@ -72,6 +72,7 @@ class AboutFragment : PreferenceFragmentCompat() {
|
|||||||
"home_page" -> openUrl(R.string.home_page_url)
|
"home_page" -> openUrl(R.string.home_page_url)
|
||||||
"license" -> showMdFile(getString(R.string.license), "LICENSE.md")
|
"license" -> showMdFile(getString(R.string.license), "LICENSE.md")
|
||||||
"disclaimer" -> showMdFile(getString(R.string.disclaimer), "disclaimer.md")
|
"disclaimer" -> showMdFile(getString(R.string.disclaimer), "disclaimer.md")
|
||||||
|
"privacyPolicy" -> showMdFile(getString(R.string.privacy_policy), "privacyPolicy.md")
|
||||||
"qq" -> showQqGroups()
|
"qq" -> showQqGroups()
|
||||||
"gzGzh" -> requireContext().sendToClip(getString(R.string.legado_gzh))
|
"gzGzh" -> requireContext().sendToClip(getString(R.string.legado_gzh))
|
||||||
"crashLog" -> showCrashLogs()
|
"crashLog" -> showCrashLogs()
|
||||||
|
@ -160,16 +160,16 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(),
|
|||||||
return@suspendCoroutine
|
return@suspendCoroutine
|
||||||
}
|
}
|
||||||
val privacyPolicy = String(assets.open("privacyPolicy.md").readBytes())
|
val privacyPolicy = String(assets.open("privacyPolicy.md").readBytes())
|
||||||
alert("用户隐私与协议", privacyPolicy) {
|
alert(getString(R.string.privacy_policy), privacyPolicy) {
|
||||||
noButton {
|
noButton {
|
||||||
finish()
|
finish()
|
||||||
block.resume(false)
|
block.resume(false)
|
||||||
}
|
}
|
||||||
yesButton {
|
positiveButton(R.string.agree) {
|
||||||
LocalConfig.privacyPolicyOk = true
|
LocalConfig.privacyPolicyOk = true
|
||||||
block.resume(true)
|
block.resume(true)
|
||||||
}
|
}
|
||||||
onCancelled {
|
negativeButton(R.string.refuse) {
|
||||||
finish()
|
finish()
|
||||||
block.resume(false)
|
block.resume(false)
|
||||||
}
|
}
|
||||||
|
@ -1084,4 +1084,7 @@
|
|||||||
<string name="delete_alert">删除提醒</string>
|
<string name="delete_alert">删除提醒</string>
|
||||||
<string name="no_book_found_bookshelf">No book found in bookshelf, import again ?</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="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>
|
</resources>
|
||||||
|
@ -1087,4 +1087,7 @@
|
|||||||
<string name="delete_alert">删除提醒</string>
|
<string name="delete_alert">删除提醒</string>
|
||||||
<string name="no_book_found_bookshelf">No book found in bookshelf, import again ?</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="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>
|
</resources>
|
||||||
|
@ -1087,4 +1087,7 @@
|
|||||||
<string name="delete_alert">删除提醒</string>
|
<string name="delete_alert">删除提醒</string>
|
||||||
<string name="no_book_found_bookshelf">No book found in bookshelf, import again ?</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="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>
|
</resources>
|
||||||
|
@ -1084,4 +1084,7 @@
|
|||||||
<string name="delete_alert">删除提醒</string>
|
<string name="delete_alert">删除提醒</string>
|
||||||
<string name="no_book_found_bookshelf">未在书架上找到所选书籍, 是否重新导入?</string>
|
<string name="no_book_found_bookshelf">未在书架上找到所选书籍, 是否重新导入?</string>
|
||||||
<string name="archive_not_found">未能在书籍保存目录找到压缩文件,是否重新导入?</string>
|
<string name="archive_not_found">未能在书籍保存目录找到压缩文件,是否重新导入?</string>
|
||||||
|
<string name="privacy_policy">用户隐私与协议</string>
|
||||||
|
<string name="agree">同意</string>
|
||||||
|
<string name="refuse">拒绝</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1086,4 +1086,7 @@
|
|||||||
<string name="delete_alert">删除提醒</string>
|
<string name="delete_alert">删除提醒</string>
|
||||||
<string name="no_book_found_bookshelf">未在书架上找到所选书籍, 是否重新导入?</string>
|
<string name="no_book_found_bookshelf">未在书架上找到所选书籍, 是否重新导入?</string>
|
||||||
<string name="archive_not_found">未能在书籍保存目录找到压缩文件,是否重新导入?</string>
|
<string name="archive_not_found">未能在书籍保存目录找到压缩文件,是否重新导入?</string>
|
||||||
|
<string name="privacy_policy">用户隐私与协议</string>
|
||||||
|
<string name="agree">同意</string>
|
||||||
|
<string name="refuse">拒绝</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1086,4 +1086,7 @@
|
|||||||
<string name="delete_alert">删除提醒</string>
|
<string name="delete_alert">删除提醒</string>
|
||||||
<string name="no_book_found_bookshelf">未在书架上找到所选书籍, 是否重新导入?</string>
|
<string name="no_book_found_bookshelf">未在书架上找到所选书籍, 是否重新导入?</string>
|
||||||
<string name="archive_not_found">未能在书籍保存目录找到压缩文件,是否重新导入?</string>
|
<string name="archive_not_found">未能在书籍保存目录找到压缩文件,是否重新导入?</string>
|
||||||
|
<string name="privacy_policy">用户隐私与协议</string>
|
||||||
|
<string name="agree">同意</string>
|
||||||
|
<string name="refuse">拒绝</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1087,4 +1087,7 @@
|
|||||||
<string name="delete_alert">删除提醒</string>
|
<string name="delete_alert">删除提醒</string>
|
||||||
<string name="no_book_found_bookshelf">No book found in bookshelf, import again ?</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="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>
|
</resources>
|
||||||
|
@ -88,6 +88,11 @@
|
|||||||
app:iconSpaceReserved="false"
|
app:iconSpaceReserved="false"
|
||||||
app:layout="@layout/view_preference_category">
|
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
|
<io.legado.app.lib.prefs.Preference
|
||||||
android:key="crashLog"
|
android:key="crashLog"
|
||||||
android:title="@string/crash_log"
|
android:title="@string/crash_log"
|
||||||
@ -98,6 +103,11 @@
|
|||||||
android:title="@string/license"
|
android:title="@string/license"
|
||||||
app:iconSpaceReserved="false" />
|
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
|
<io.legado.app.lib.prefs.Preference
|
||||||
android:key="disclaimer"
|
android:key="disclaimer"
|
||||||
android:title="@string/disclaimer"
|
android:title="@string/disclaimer"
|
||||||
|
Loading…
Reference in New Issue
Block a user