diff --git a/app/src/main/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragment.kt b/app/src/main/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragment.kt index 849a569533f78e5a7b98d3bb3375761e60f92fb0..2ccf8f682ec2487d00c646b007a7ef10fdb62ba0 100644 --- a/app/src/main/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragment.kt +++ b/app/src/main/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragment.kt @@ -27,6 +27,7 @@ import androidx.fragment.app.viewModels import androidx.lifecycle.* import at.bitfire.davdroid.Constants import at.bitfire.davdroid.DavService +import at.bitfire.davdroid.DavUtils import at.bitfire.davdroid.InvalidAccountException import at.bitfire.davdroid.MailAccountSyncHelper import at.bitfire.davdroid.R @@ -352,6 +353,9 @@ class AccountDetailsFragment : Fragment() { result.postValue(false) return@launch } + + DavUtils.requestSync(activity, account) + result.postValue(true) } return result