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

Commit 0d3a19a3 authored by Luca Stefani's avatar Luca Stefani Committed by Michael Bestas
Browse files

Settings: Remove A/B preference if unsupported

Change-Id: If9e9e2b55151d079a25bd5bc9c297c6c37eeade1
parent 7f322840
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -579,6 +579,10 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
        }

        mOtaDisableAutomaticUpdate = findAndInitSwitchPref(OTA_DISABLE_AUTOMATIC_UPDATE_KEY);
        if (!SystemProperties.getBoolean("ro.build.ab_update", false)) {
            removePreference(mOtaDisableAutomaticUpdate);
            mOtaDisableAutomaticUpdate = null;
        }

        mColorModePreference = (ColorModePreference) findPreference(KEY_COLOR_MODE);
        mColorModePreference.updateCurrentAndSupported();
@@ -836,7 +840,9 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
        updateShowAllANRsOptions();
        updateShowNotificationChannelWarningsOptions();
        mVerifyAppsOverUsbController.updatePreference();
        if (mOtaDisableAutomaticUpdate != null) {
            updateOtaDisableAutomaticUpdateOptions();
        }
        updateBugreportOptions();
        updateForceRtlOptions();
        updateLogdSizeValues();