diff --git a/app/src/main/kotlin/cn/super12138/todo/logic/Repository.kt b/app/src/main/kotlin/cn/super12138/todo/logic/Repository.kt index 65d7e0e..6a46a0f 100644 --- a/app/src/main/kotlin/cn/super12138/todo/logic/Repository.kt +++ b/app/src/main/kotlin/cn/super12138/todo/logic/Repository.kt @@ -14,7 +14,6 @@ object Repository { fun getPreferenceString(context: Context, key: String, defaultValue: String) = SPHelper.getPreferenceString(context, key, defaultValue) - /** * 获取应用设置的布尔值 */ diff --git a/app/src/main/res/drawable/backup_24.xml b/app/src/main/res/drawable/backup_24.xml new file mode 100644 index 0000000..586f43b --- /dev/null +++ b/app/src/main/res/drawable/backup_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/restore_24.xml b/app/src/main/res/drawable/restore_24.xml new file mode 100644 index 0000000..dca7f8c --- /dev/null +++ b/app/src/main/res/drawable/restore_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index b7b5da5..cc0ffeb 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -45,4 +45,8 @@ 开启后任何人将不能对待办列表进行截屏 重启应用后生效 立即重启 + 备份数据库 + 备份待办数据库 + 恢复数据库 + 恢复先前备份过的待办数据库 \ 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 11735c8..fc4764c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -45,4 +45,8 @@ When it opens anybody cannot take screenshot for to do list Effective after restarting the app Restart now + Backup database + Backup to-do database + Restore database + Restore the previously backed up to-do database \ No newline at end of file diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index bc48545..aa7ec2d 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -2,10 +2,10 @@ xmlns:app="http://schemas.android.com/apk/res-auto"> @@ -24,8 +24,18 @@ android:icon="@drawable/screenshot_24" app:defaultValue="false" app:key="secure_mode" - app:title="@string/secure_mode" - app:summary="@string/secure_mode_summary" /> + app:summary="@string/secure_mode_summary" + app:title="@string/secure_mode" /> + +