Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31057295 authored by Roman Birg's avatar Roman Birg Committed by Dan Pasanen
Browse files

Updater: fix wrong preference key in A/B installer



We are referencing the wrong key for deciding whether to delete the
update on reboot.

Change-Id: If83d278259291b61c26302bdd59c2774901b18ca
Signed-off-by: default avatarRoman Birg <romanbirg@gmail.com>
parent f183b58b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ class ABUpdateInstaller {
                    mUpdaterController.notifyUpdateChange(mDownloadId);
                    SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(
                            mContext);
                    boolean deleteUpdate = pref.getBoolean(Constants.PREF_AUTO_UPDATES_CHECK,
                    boolean deleteUpdate = pref.getBoolean(Constants.PREF_AUTO_DELETE_UPDATES,
                            false);
                    if (deleteUpdate) {
                        mUpdaterController.deleteUpdate(mDownloadId);