mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 02:17:43 +03:00
use new login flow only when we have a server url
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
2911a86263
commit
622cc45e72
1 changed files with 4 additions and 4 deletions
|
@ -750,13 +750,13 @@ public class SettingsActivity extends PreferenceActivity
|
|||
// arguments
|
||||
if (serverBaseUri != null) {
|
||||
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("loginFlow", TRUE_VALUE);
|
||||
davDroidLoginIntent.setData(Uri.parse(serverBaseUri.toString() + AuthenticatorActivity.WEB_LOGIN));
|
||||
davDroidLoginIntent.putExtra("davPath", DAV_PATH);
|
||||
|
||||
startActivityForResult(davDroidLoginIntent, ACTION_REQUEST_CODE_DAVDROID_SETUP);
|
||||
} else {
|
||||
// DAVdroid not installed
|
||||
|
|
Loading…
Reference in a new issue