cb.setChecked(mFile.keepInSync());\r
\r
// configure UI for depending upon local state of the file\r
- if (mFile.isDownloading()) {\r
+ if (FileDownloader.isDownloading(mAccount, mFile.getRemotePath())) {\r
setButtonsForDownloading();\r
\r
} else if (mFile.isDown()) {\r