mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Changes after CR
This commit is contained in:
parent
46b5d5a4b9
commit
b8aa7b6119
@ -27,15 +27,15 @@
|
|||||||
|
|
||||||
package com.owncloud.android.lib.resources.users;
|
package com.owncloud.android.lib.resources.users;
|
||||||
|
|
||||||
import com.owncloud.android.lib.common.OwnCloudBasicCredentials;
|
|
||||||
import com.owncloud.android.lib.common.OwnCloudClient;
|
import com.owncloud.android.lib.common.OwnCloudClient;
|
||||||
|
import com.owncloud.android.lib.common.OwnCloudCredentials;
|
||||||
import com.owncloud.android.lib.common.operations.RemoteOperation;
|
import com.owncloud.android.lib.common.operations.RemoteOperation;
|
||||||
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
||||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||||
|
|
||||||
|
import org.apache.commons.httpclient.HttpStatus;
|
||||||
import org.apache.commons.httpclient.NameValuePair;
|
import org.apache.commons.httpclient.NameValuePair;
|
||||||
import org.apache.commons.httpclient.methods.GetMethod;
|
import org.apache.commons.httpclient.methods.GetMethod;
|
||||||
import org.apache.http.HttpStatus;
|
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -84,7 +84,7 @@ public class RemoteGetUserQuotaOperation extends RemoteOperation {
|
|||||||
|
|
||||||
//Get the user
|
//Get the user
|
||||||
try {
|
try {
|
||||||
OwnCloudBasicCredentials credentials = (OwnCloudBasicCredentials) client.getCredentials();
|
OwnCloudCredentials credentials = client.getCredentials();
|
||||||
String url = client.getBaseUri() + OCS_ROUTE + credentials.getUsername();
|
String url = client.getBaseUri() + OCS_ROUTE + credentials.getUsername();
|
||||||
|
|
||||||
get = new GetMethod(url);
|
get = new GetMethod(url);
|
||||||
@ -127,7 +127,9 @@ public class RemoteGetUserQuotaOperation extends RemoteOperation {
|
|||||||
Log_OC.e(TAG, "Exception while getting OC user information", e);
|
Log_OC.e(TAG, "Exception while getting OC user information", e);
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
get.releaseConnection();
|
if (get != null) {
|
||||||
|
get.releaseConnection();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user