Use the right preference for the auto-delete option

Change-Id: Iac7e838e8ecf1e5ed27bb0c9587442aa2ec8ffec
(cherry picked from commit 8ff6f57e7b)
This commit is contained in:
Gabriele M
2018-01-18 20:19:34 +01:00
parent c5324a5fc6
commit cbe6bd69fd

View File

@@ -174,7 +174,7 @@ public class UpdaterService extends Service {
ABUpdateInstaller.start(this, mUpdaterController, downloadId); ABUpdateInstaller.start(this, mUpdaterController, downloadId);
} else { } else {
boolean deleteUpdate = PreferenceManager.getDefaultSharedPreferences(this) boolean deleteUpdate = PreferenceManager.getDefaultSharedPreferences(this)
.getBoolean(Constants.PREF_AUTO_UPDATES_CHECK, false); .getBoolean(Constants.PREF_AUTO_DELETE_UPDATES, false);
if (deleteUpdate) { if (deleteUpdate) {
// Renaming the file is enough to have it deleted automatically // Renaming the file is enough to have it deleted automatically
File uncrytpFile = new File( File uncrytpFile = new File(