* @param file File OCFile
*/
public void cancel(Account account, OCFile file){
- if(Looper.myLooper() == Looper.getMainLooper()) {
- Log_OC.d(TAG, "Current Thread is Main Thread.");
- } else {
- Log_OC.d(TAG, "Current Thread is NOT Main Thread.");
- }
-
DownloadFileOperation download = null;
String targetKey = buildRemoteName(account, file);
ArrayList<String> keyItems = new ArrayList<String>();
}
}
} else {
+ // this is not really expected...
Log_OC.d(TAG, "Canceling file download");
keyItems.add(buildRemoteName(account, file));
}