use new login flow only when we have a server url

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-10-24 09:10:48 +02:00
parent 2911a86263
commit 622cc45e72
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -750,13 +750,13 @@ public class SettingsActivity extends PreferenceActivity
// arguments // arguments
if (serverBaseUri != null) { if (serverBaseUri != null) {
davDroidLoginIntent.putExtra("url", serverBaseUri.toString() + DAV_PATH); davDroidLoginIntent.putExtra("url", serverBaseUri.toString() + DAV_PATH);
davDroidLoginIntent.putExtra("loginFlow", TRUE_VALUE);
davDroidLoginIntent.setData(Uri.parse(serverBaseUri.toString() + AuthenticatorActivity.WEB_LOGIN));
davDroidLoginIntent.putExtra("davPath", DAV_PATH);
} }
davDroidLoginIntent.putExtra("username", UserAccountManager.getUsername(account)); davDroidLoginIntent.putExtra("username", UserAccountManager.getUsername(account));
davDroidLoginIntent.putExtra("loginFlow", TRUE_VALUE);
davDroidLoginIntent.setData(Uri.parse(serverBaseUri.toString() + AuthenticatorActivity.WEB_LOGIN));
davDroidLoginIntent.putExtra("davPath", DAV_PATH);
startActivityForResult(davDroidLoginIntent, ACTION_REQUEST_CODE_DAVDROID_SETUP); startActivityForResult(davDroidLoginIntent, ACTION_REQUEST_CODE_DAVDROID_SETUP);
} else { } else {
// DAVdroid not installed // DAVdroid not installed