From 3e8b62759b0324cd6c06041bfd97364b93681455 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 17 Sep 2019 10:54:15 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 b98a655b0..ff96e01cc 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 @@ -13,7 +13,7 @@ import io.legado.app.base.BaseFragment import io.legado.app.help.permission.Permissions import io.legado.app.help.permission.PermissionsCompat import io.legado.app.help.storage.Backup -import io.legado.app.help.storage.Restore +import io.legado.app.help.storage.WebDavHelp import io.legado.app.lib.theme.ATH import io.legado.app.ui.about.AboutActivity import io.legado.app.ui.about.DonateActivity @@ -50,7 +50,7 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config) { R.id.menu_restore -> PermissionsCompat.Builder(this) .addPermissions(*Permissions.Group.STORAGE) .rationale(R.string.tip_perm_request_storage) - .onGranted { Restore.restore() } + .onGranted { WebDavHelp.showRestoreDialog(requireContext()) } .request() } }