Bug 923237 - Updater should immediately apply update when downloaded manually. r=snorp

This commit is contained in:
Michael Boon 2013-12-02 12:51:25 -05:00
parent 109a3ede27
commit fea40eb2d5

View File

@ -122,7 +122,8 @@ public class UpdateService extends IntentService {
// Use this instead for forcing a download from about:fennec
// startUpdate(UpdateServiceHelper.FLAG_FORCE_DOWNLOAD | UpdateServiceHelper.FLAG_REINSTALL);
} else if (UpdateServiceHelper.ACTION_DOWNLOAD_UPDATE.equals(intent.getAction())) {
// We always want to do the download here
// We always want to do the download and apply it here
mApplyImmediately = true;
startUpdate(UpdateServiceHelper.FLAG_FORCE_DOWNLOAD);
} else if (UpdateServiceHelper.ACTION_APPLY_UPDATE.equals(intent.getAction())) {
applyUpdate(intent.getStringExtra(UpdateServiceHelper.EXTRA_PACKAGE_PATH_NAME));