mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 896735 - Create download directory for updates if it does not exist. r=snorp
This commit is contained in:
parent
5573946a7a
commit
20abeba3bd
@ -435,6 +435,7 @@ public class UpdateService extends IntentService {
|
||||
|
||||
private File downloadUpdatePackage(UpdateInfo info, boolean overwriteExisting) {
|
||||
File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
|
||||
path.mkdirs();
|
||||
String fileName = new File(info.url.getFile()).getName();
|
||||
File downloadFile = new File(path, fileName);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user