mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Use proper API to get WebDAV path for DAVdroid URI correction
This commit is contained in:
parent
ef1a56f844
commit
66b6436d2b
1 changed files with 3 additions and 1 deletions
|
@ -476,7 +476,9 @@ public class Preferences extends PreferenceActivity
|
|||
if (getPackageManager().resolveActivity(davDroidLoginIntent, 0) != null) {
|
||||
// arguments
|
||||
if (mUri != null) {
|
||||
davDroidLoginIntent.putExtra("url", mUri.toString() + "/remote.php/dav");
|
||||
davDroidLoginIntent.putExtra("url", mUri.toString()
|
||||
+ AccountUtils.getWebdavPath(AccountUtils.getServerVersion(account), MainApp.getAuthTokenType())
|
||||
);
|
||||
}
|
||||
davDroidLoginIntent.putExtra("username", AccountUtils.getAccountUsername(account.name));
|
||||
//loginIntent.putExtra("password", "...");
|
||||
|
|
Loading…
Reference in a new issue