pull/34/head
kunfei 5 years ago
parent 30d1c90ada
commit 3e8b62759b
  1. 4
      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()
}
}

Loading…
Cancel
Save