From ec4f4c33a1dd5d2e8a70019874d4db49884882ea Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 31 Jan 2020 17:11:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt b/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt index d3ee247c7..e8b061144 100644 --- a/app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt +++ b/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) } } }