From 20abeba3bd3472806b4d23b3c390bf756a1e1bfe Mon Sep 17 00:00:00 2001 From: Eugen Sawin Date: Tue, 30 Sep 2014 21:23:36 +0200 Subject: [PATCH] Bug 896735 - Create download directory for updates if it does not exist. r=snorp --- mobile/android/base/updater/UpdateService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/android/base/updater/UpdateService.java b/mobile/android/base/updater/UpdateService.java index ad4cfa629e7..1824a4c3fc0 100644 --- a/mobile/android/base/updater/UpdateService.java +++ b/mobile/android/base/updater/UpdateService.java @@ -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);