Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobiasKaminsky <tobias@kaminsky.me>2019-08-16 08:12:19 +0300
committertobiasKaminsky <tobias@kaminsky.me>2019-08-16 08:12:19 +0300
commit5512dae22ccf81458684d5a106b0b267d4a5ae19 (patch)
tree4bd6b3f9304933ea21b1aaabf052a5c1a321b513
parentc80bb8d562d3af3363f38ca09f12923befc7febf (diff)
small fix1.5.0
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
-rw-r--r--src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForProxyOperation.java2
-rw-r--r--src/main/java/com/owncloud/android/lib/resources/notifications/UnregisterAccountDeviceForProxyOperation.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForProxyOperation.java b/src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForProxyOperation.java
index a351197b..e6c34523 100644
--- a/src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForProxyOperation.java
+++ b/src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForProxyOperation.java
@@ -81,6 +81,8 @@ public class RegisterAccountDeviceForProxyOperation extends RemoteOperation {
post.setRequestHeader(CONTENT_TYPE, FORM_URLENCODED);
+ client.clearCredentials();
+
status = client.executeMethod(post);
String response = post.getResponseBodyAsString();
diff --git a/src/main/java/com/owncloud/android/lib/resources/notifications/UnregisterAccountDeviceForProxyOperation.java b/src/main/java/com/owncloud/android/lib/resources/notifications/UnregisterAccountDeviceForProxyOperation.java
index 96d31d8b..311e86a0 100644
--- a/src/main/java/com/owncloud/android/lib/resources/notifications/UnregisterAccountDeviceForProxyOperation.java
+++ b/src/main/java/com/owncloud/android/lib/resources/notifications/UnregisterAccountDeviceForProxyOperation.java
@@ -76,6 +76,8 @@ public class UnregisterAccountDeviceForProxyOperation extends RemoteOperation {
delete.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE);
delete.setRequestHeader(CONTENT_TYPE, FORM_URLENCODED);
+ client.clearCredentials();
+
status = client.executeMethod(delete);
String response = delete.getResponseBodyAsString();