Forget the download save path if the storage API is changed

This commit is contained in:
kapodamy 2019-04-15 21:31:33 -03:00
parent 1089de6321
commit 4b3eb2ece5
2 changed files with 51 additions and 46 deletions

View file

@ -566,7 +566,10 @@ public class DownloadManagerService extends Service {
}
if (path == null || path.isEmpty()) {
return useJavaIO ? new StoredDirectoryHelper(new File(defaultPath).toURI(), tag) : null;
if (useJavaIO)
return new StoredDirectoryHelper(new File(defaultPath).toURI(), tag);
else
return null;
}
if (path.charAt(0) == File.separatorChar) {