}
removeStickyBroadcast(intent);
- mWaitingToPreview = null;
}
private boolean isDescendant(String downloadedRemotePath) {
if (component.equals(new ComponentName(FileDisplayActivity.this, FileDownloader.class))) {
Log_OC.d(TAG, "Download service connected");
mDownloaderBinder = (FileDownloaderBinder) service;
- if (mWaitingToPreview != null) {
+ if (mWaitingToPreview != null && !mWaitingToPreview.isDown()) {
requestForDownload();
}