mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 14:15:44 +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,12 +750,12 @@ 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("username", UserAccountManager.getUsername(account));
|
|
||||||
|
|
||||||
davDroidLoginIntent.putExtra("loginFlow", TRUE_VALUE);
|
davDroidLoginIntent.putExtra("loginFlow", TRUE_VALUE);
|
||||||
davDroidLoginIntent.setData(Uri.parse(serverBaseUri.toString() + AuthenticatorActivity.WEB_LOGIN));
|
davDroidLoginIntent.setData(Uri.parse(serverBaseUri.toString() + AuthenticatorActivity.WEB_LOGIN));
|
||||||
davDroidLoginIntent.putExtra("davPath", DAV_PATH);
|
davDroidLoginIntent.putExtra("davPath", DAV_PATH);
|
||||||
|
}
|
||||||
|
davDroidLoginIntent.putExtra("username", UserAccountManager.getUsername(account));
|
||||||
|
|
||||||
startActivityForResult(davDroidLoginIntent, ACTION_REQUEST_CODE_DAVDROID_SETUP);
|
startActivityForResult(davDroidLoginIntent, ACTION_REQUEST_CODE_DAVDROID_SETUP);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue