Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2b57da0 authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

change in UploadFileOperation because there is no notification show in case of quota exceeded

parent 081c88ea
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -131,13 +131,13 @@ public class UploadFileOperation extends RemoteOperation implements ComparableOp
        if(ocsResult.isSuccess() && ocsResult.getData() != null){
            if( ((UserInfo) ocsResult.getData().get(0)).getQuota().getFree()  < mFile.length() ) {
                Log.w(TAG, "quota exceeded!");
                return ocsResult;
                return new RemoteOperationResult(RemoteOperationResult.ResultCode.QUOTA_EXCEEDED);
            }else{
                Log.d(TAG, "Quota Okay");
            }
        }else{
            Log.w(TAG, "getRemoteUserInfoOperation failed: "+ocsResult.getHttpCode() );
            return ocsResult;
            return new RemoteOperationResult(ocsResult.getCode());
        }

        /* end of code to verify */