projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change error message when trying download a folder that does not exist
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
files
/
services
/
FileDownloader.java
diff --git
a/src/com/owncloud/android/files/services/FileDownloader.java
b/src/com/owncloud/android/files/services/FileDownloader.java
index
2519b6b
..
db80691
100644
(file)
--- a/
src/com/owncloud/android/files/services/FileDownloader.java
+++ b/
src/com/owncloud/android/files/services/FileDownloader.java
@@
-580,12
+580,6
@@
public class FileDownloader extends Service implements OnDatatransferProgressLis
* @param file File OCFile
*/
public void cancel(Account account, OCFile file){
* @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>();
DownloadFileOperation download = null;
String targetKey = buildRemoteName(account, file);
ArrayList<String> keyItems = new ArrayList<String>();
@@
-602,6
+596,7
@@
public class FileDownloader extends Service implements OnDatatransferProgressLis
}
}
} else {
}
}
} else {
+ // this is not really expected...
Log_OC.d(TAG, "Canceling file download");
keyItems.add(buildRemoteName(account, file));
}
Log_OC.d(TAG, "Canceling file download");
keyItems.add(buildRemoteName(account, file));
}