Use the right preference for the auto-delete option

Change-Id: Iac7e838e8ecf1e5ed27bb0c9587442aa2ec8ffec
This commit is contained in:
Gabriele M
2018-01-18 20:19:34 +01:00
parent 7a784b3956
commit 8ff6f57e7b

View File

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