Loading src/com/owncloud/android/lib/common/operations/RemoteOperationResult.java +1 −1 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ public class RemoteOperationResult implements Serializable { MAINTENANCE_MODE, LOCK_FAILED, DELAYED_IN_POWER_SAVE_MODE, ACCOUNT_USES_OLD_LOGIN ACCOUNT_USES_STANDARD_PASSWORD } private boolean mSuccess = false; Loading src/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForNotificationsOperation.java +3 −3 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ public class RegisterAccountDeviceForNotificationsOperation extends RemoteOperat result.setPushResponseData(pushResponse); } else { if (isInvalidSessionToken(response)) { result = new RemoteOperationResult(RemoteOperationResult.ResultCode.ACCOUNT_USES_OLD_LOGIN); result = new RemoteOperationResult(RemoteOperationResult.ResultCode.ACCOUNT_USES_STANDARD_PASSWORD); } else { result = new RemoteOperationResult(false, status, post.getResponseHeaders()); } Loading Loading @@ -135,8 +135,8 @@ public class RegisterAccountDeviceForNotificationsOperation extends RemoteOperat private boolean isInvalidSessionToken(String response) { JsonParser jsonParser = new JsonParser(); JsonObject jo = (JsonObject)jsonParser.parse(response); String message = String.valueOf(jo.getAsJsonObject(NODE_OCS).getAsJsonObject(NODE_DATA).get(MESSAGE)); JsonObject jsonObject = (JsonObject)jsonParser.parse(response); String message = jsonObject.getAsJsonObject(NODE_OCS).getAsJsonObject(NODE_DATA).get(MESSAGE).getAsString(); return INVALID_SESSION_TOKEN.equals(message); } Loading Loading
src/com/owncloud/android/lib/common/operations/RemoteOperationResult.java +1 −1 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ public class RemoteOperationResult implements Serializable { MAINTENANCE_MODE, LOCK_FAILED, DELAYED_IN_POWER_SAVE_MODE, ACCOUNT_USES_OLD_LOGIN ACCOUNT_USES_STANDARD_PASSWORD } private boolean mSuccess = false; Loading
src/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForNotificationsOperation.java +3 −3 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ public class RegisterAccountDeviceForNotificationsOperation extends RemoteOperat result.setPushResponseData(pushResponse); } else { if (isInvalidSessionToken(response)) { result = new RemoteOperationResult(RemoteOperationResult.ResultCode.ACCOUNT_USES_OLD_LOGIN); result = new RemoteOperationResult(RemoteOperationResult.ResultCode.ACCOUNT_USES_STANDARD_PASSWORD); } else { result = new RemoteOperationResult(false, status, post.getResponseHeaders()); } Loading Loading @@ -135,8 +135,8 @@ public class RegisterAccountDeviceForNotificationsOperation extends RemoteOperat private boolean isInvalidSessionToken(String response) { JsonParser jsonParser = new JsonParser(); JsonObject jo = (JsonObject)jsonParser.parse(response); String message = String.valueOf(jo.getAsJsonObject(NODE_OCS).getAsJsonObject(NODE_DATA).get(MESSAGE)); JsonObject jsonObject = (JsonObject)jsonParser.parse(response); String message = jsonObject.getAsJsonObject(NODE_OCS).getAsJsonObject(NODE_DATA).get(MESSAGE).getAsString(); return INVALID_SESSION_TOKEN.equals(message); } Loading