Merge pull request #837 from owncloud/download_folder_fix_cancel_subfolders
[pub/Android/ownCloud.git] / 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);
                         }