pull/83/head
kunfei 5 years ago
parent 6685e37f96
commit ec4f4c33a1
  1. 3
      app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt

@ -69,6 +69,7 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config) {
if (doc?.canWrite() == true) {
launch {
Backup.backup(requireContext(), uri)
toast(R.string.backup_success)
}
} else {
selectBackupFolder()
@ -90,6 +91,7 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config) {
.onGranted {
launch {
Backup.backup(requireContext(), null)
toast(R.string.backup_success)
}
}
.request()
@ -147,6 +149,7 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config) {
putPrefString(PreferKey.backupPath, uri.toString())
launch {
Backup.backup(requireContext(), uri)
toast(R.string.backup_success)
}
}
}

Loading…
Cancel
Save