We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39722a5 commit 1822d21Copy full SHA for 1822d21
2 files changed
app/src/main/java/org/schabi/newpipe/streams/io/StoredFileHelper.java
@@ -285,7 +285,7 @@ public String getTag() {
285
}
286
287
public boolean existsAsFile() {
288
- if (source == null) {
+ if (source == null || (docFile == null && ioFile == null)) {
289
return false;
290
291
app/src/main/java/us/shandian/giga/get/DownloadMission.java
@@ -664,7 +664,7 @@ public void psContinue(boolean recover) {
664
* @return {@code true}, if storage is invalid and cannot be used
665
*/
666
public boolean hasInvalidStorage() {
667
- return errCode == ERROR_PROGRESS_LOST || storage == null || storage.isInvalid() || !storage.existsAsFile();
+ return errCode == ERROR_PROGRESS_LOST || storage == null || !storage.existsAsFile();
668
669
670
/**
0 commit comments