projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed some unused classes
[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
b01d61e
..
14a31fe
100644
(file)
--- a/
src/com/owncloud/android/files/services/FileDownloader.java
+++ b/
src/com/owncloud/android/files/services/FileDownloader.java
@@
-1,5
+1,6
@@
/* ownCloud Android client application
\r
* Copyright (C) 2012 Bartek Przybylski
\r
/* ownCloud Android client application
\r
* Copyright (C) 2012 Bartek Przybylski
\r
+ * Copyright (C) 2012-2013 ownCloud Inc.
\r
*
\r
* This program is free software: you can redistribute it and/or modify
\r
* it under the terms of the GNU General Public License as published by
\r
*
\r
* This program is free software: you can redistribute it and/or modify
\r
* it under the terms of the GNU General Public License as published by
\r
@@
-198,6
+199,7
@@
public class FileDownloader extends Service implements OnDatatransferProgressLis
* @param file A file that could be in the queue of downloads.
\r
*/
\r
public boolean isDownloading(Account account, OCFile file) {
\r
* @param file A file that could be in the queue of downloads.
\r
*/
\r
public boolean isDownloading(Account account, OCFile file) {
\r
+ if (account == null || file == null) return false;
\r
String targetKey = buildRemoteName(account, file);
\r
synchronized (mPendingDownloads) {
\r
if (file.isDirectory()) {
\r
String targetKey = buildRemoteName(account, file);
\r
synchronized (mPendingDownloads) {
\r
if (file.isDirectory()) {
\r