mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-09-06 18:01:11 +00:00
Nextcloud Login flow: provide default DAV_PATH (/remote.php/dav) (#497)
This commit is contained in:
parent
88238a2406
commit
5d7dea0ebf
|
@ -91,13 +91,14 @@ class NextcloudLoginFlowFragment: Fragment() {
|
|||
/** Path to DAV endpoint (e.g. `/remote.php/dav`). Will be appended to the
|
||||
* server URL returned by Login Flow without further processing. */
|
||||
const val EXTRA_DAV_PATH = "davPath"
|
||||
const val DAV_PATH_DEFAULT = "/remote.php/dav"
|
||||
}
|
||||
|
||||
val loginModel by activityViewModels<LoginModel>()
|
||||
val model by viewModels<Model>()
|
||||
|
||||
val checkResultCallback = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) {
|
||||
val davPath = requireActivity().intent.getStringExtra(EXTRA_DAV_PATH)
|
||||
val davPath = requireActivity().intent.getStringExtra(EXTRA_DAV_PATH) ?: DAV_PATH_DEFAULT
|
||||
model.checkResult(davPath)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue