+ for (String item: keyItems) {
+ download = mPendingDownloads.remove(item);
+ Log_OC.d(TAG, "Key removed: " + item);
+
+ if (download != null) {
+ download.cancel();
+ }
+ }
+
+ *-/
+
+ } else {
+ // this is not really expected...
+ Log_OC.d(TAG, "Canceling file download");
+ download = mPendingDownloads.remove(account, file.getRemotePath());