File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
library/src/main/java/com/owncloud/android/lib/resources/files Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,13 @@ protected RemoteOperationResult run(OwnCloudClient client) {
222222
223223 result = new RemoteOperationResult (isSuccess (moveResult ), moveMethod );
224224 } catch (Exception e ) {
225- if (moveMethod != null && moveMethod .isAborted ()) {
225+ if (putMethod != null && putMethod .isAborted ()) {
226+ if (cancellationRequested .get () && cancellationReason != null ) {
227+ result = new RemoteOperationResult (cancellationReason );
228+ } else {
229+ result = new RemoteOperationResult (new OperationCancelledException ());
230+ }
231+ } else if (moveMethod != null && moveMethod .isAborted ()) {
226232 if (cancellationRequested .get () && cancellationReason != null ) {
227233 result = new RemoteOperationResult (cancellationReason );
228234 } else {
You can’t perform that action at this time.
0 commit comments