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

Commit 21ae606b authored by Bruno Martins's avatar Bruno Martins
Browse files

UpdateRecoveryActivity: Don't force recovery update by default

Change-Id: I0992bd257a3acc7ca6872744478121ba7f001ea0
parent e90cf31f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/*
 * Copyright (C) 2020 The LineageOS Project
 * Copyright (C) 2020-2021 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -62,7 +62,7 @@ public class UpdateRecoveryActivity extends BaseSetupWizardActivity {
        // Allow overriding the default checkbox state
        if (sFirstTime) {
            mSetupWizardApp.getSettingsBundle().putBoolean(ENABLE_RECOVERY_UPDATE,
                    SystemProperties.getBoolean(UPDATE_RECOVERY_PROP, true));
                    SystemProperties.getBoolean(UPDATE_RECOVERY_PROP, false));
        }

        sFirstTime = false;
@@ -73,7 +73,7 @@ public class UpdateRecoveryActivity extends BaseSetupWizardActivity {
        super.onResume();

        final Bundle myPageBundle = mSetupWizardApp.getSettingsBundle();
        final boolean checked = myPageBundle.getBoolean(ENABLE_RECOVERY_UPDATE, true);
        final boolean checked = myPageBundle.getBoolean(ENABLE_RECOVERY_UPDATE, false);
        mRecoveryUpdateCheckbox.setChecked(checked);
    }