Skip to content

Commit

Permalink
Adapt to new download management #4
Browse files Browse the repository at this point in the history
  • Loading branch information
bengelhaupt committed Jul 19, 2018
1 parent 7f9d5a4 commit 9e3e470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/de/xikolo/utils/StorageUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ object StorageUtil {
file.delete()
}
} else {
if ((file.extension.endsWith("tmp") && !DownloadService.getInstance().isDownloading)
if ((file.extension.endsWith("tmp") && (DownloadService.getInstance() == null || !DownloadService.getInstance().isDownloading))
|| file.name.endsWith("slides.pdf")
|| file.name.endsWith("transcript.pdf")
|| file.name.endsWith("video_hd.mp4")
Expand Down

0 comments on commit 9e3e470

Please sign in to comment.