Use proper API to get WebDAV path for DAVdroid URI correction

This commit is contained in:
justin-sleep 2016-11-24 22:48:24 -06:00 committed by AndyScherzinger
parent ef1a56f844
commit 66b6436d2b
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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", "...");