mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 07:05:49 +03:00
Enable preemptive authentication to avoid double send of files in uploading
This commit is contained in:
parent
f8e0f7a582
commit
611fe1e4b5
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
-->
|
-->
|
||||||
<manifest package="eu.alefzero.owncloud"
|
<manifest package="eu.alefzero.owncloud"
|
||||||
android:versionCode="1"
|
android:versionCode="1"
|
||||||
android:versionName="0.1.166B" xmlns:android="http://schemas.android.com/apk/res/android">
|
android:versionName="0.1.167B" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
||||||
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class WebdavClient extends HttpClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCredentials(String username, String password) {
|
public void setCredentials(String username, String password) {
|
||||||
//getParams().setAuthenticationPreemptive(true);
|
getParams().setAuthenticationPreemptive(true);
|
||||||
getState().setCredentials(AuthScope.ANY,
|
getState().setCredentials(AuthScope.ANY,
|
||||||
getCredentials(username, password));
|
getCredentials(username, password));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue