Use the right preference for the auto-delete option
Change-Id: Iac7e838e8ecf1e5ed27bb0c9587442aa2ec8ffec
(cherry picked from commit 8ff6f57e7b
)
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user