* @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
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
if (mDownloadClient == null || !mLastAccount.equals(mCurrentDownload.getAccount())) {\r
mLastAccount = mCurrentDownload.getAccount();\r
mStorageManager = new FileDataStorageManager(mLastAccount, getContentResolver());\r
if (mDownloadClient == null || !mLastAccount.equals(mCurrentDownload.getAccount())) {\r
mLastAccount = mCurrentDownload.getAccount();\r
mStorageManager = new FileDataStorageManager(mLastAccount, getContentResolver());\r