1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-17 11:22:54 +00:00

Added test to unit tests for OwnCloudClient

This commit is contained in:
David A. Velasco
2014-06-25 17:03:16 +02:00
parent a57be36925
commit 4c8f31df2f
3 changed files with 25 additions and 18 deletions
@@ -281,7 +281,6 @@ public abstract class RemoteOperation implements Runnable {
/** DEPRECATED BLOCK - will be removed at version 1.0 ; don't trust in this code
* to trigger authentication update */
if (mCallerActivity != null && mAccount != null && mContext != null && !result.isSuccess() &&
// (result.getCode() == ResultCode.UNAUTHORIZED || (result.isTemporalRedirection() && result.isIdPRedirection()))) {
(result.getCode() == ResultCode.UNAUTHORIZED || result.isIdPRedirection())) {
/// possible fail due to lack of authorization in an operation performed in foreground
OwnCloudCredentials cred = mClient.getCredentials();