Forget the download save path if the storage API is changed
This commit is contained in:
parent
1089de6321
commit
4b3eb2ece5
2 changed files with 51 additions and 46 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue