OC-2397: Fix bug: file doesn't refresh wwhen you select to refresh after change it
authormasensio <masensio@solidgear.es>
Mon, 16 Dec 2013 14:09:27 +0000 (15:09 +0100)
committermasensio <masensio@solidgear.es>
Mon, 16 Dec 2013 14:09:27 +0000 (15:09 +0100)
src/com/owncloud/android/operations/SynchronizeFileOperation.java

index 08367c1..d797eb4 100644 (file)
@@ -94,7 +94,7 @@ public class SynchronizeFileOperation extends RemoteOperation {
                 }
             }
 
-            if (result == null) {   // true if the server was not checked. nothing was wrong with the remote request
+            if (result.isSuccess()) {   
 
                 /// check changes in server and local file
                 boolean serverChanged = false;