Fix on search of operation to cancel
authorDavid A. Velasco <dvelasco@solidgear.es>
Mon, 12 Jan 2015 09:43:40 +0000 (10:43 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Mon, 12 Jan 2015 09:43:40 +0000 (10:43 +0100)
src/com/owncloud/android/services/OperationsService.java

index c6651f5..656d81d 100644 (file)
@@ -499,7 +499,7 @@ public class OperationsService extends Service {
                     boolean found = false;
                     while (it.hasNext()) {
                         String keySyncOperation = it.next();
-                        found = keySyncOperation.contains(targetKey);
+                        found = keySyncOperation.startsWith(targetKey);
                         if (found) {
                             keyItems.add(keySyncOperation);
                         }