Bug 896735 - Create download directory for updates if it does not exist. r=snorp

This commit is contained in:
Eugen Sawin 2014-09-30 21:23:36 +02:00
parent 5573946a7a
commit 20abeba3bd

View File

@ -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);