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

Commit 21327c6e authored by Yuri Lin's avatar Yuri Lin
Browse files

Call super.updateState() to set checked status of work profile switch

The switch preference was not correctly reflecting the state of the cooldown setting because the checked state of the switch is set in the parent class's updateState() method.

Fixes: 397554453
Flag: EXEMPT bugfix
Test: manual
Change-Id: I2ce6fe71ac6ed0249c0ad39e99ff5929659d6b5a
parent 22e56834
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -131,6 +131,7 @@ public class PoliteNotifWorkProfileToggleController extends TogglePreferenceCont
    public void updateState(@Nullable Preference preference) {
        if (preference == null) return;
        preference.setVisible(isAvailable());
        super.updateState(preference);
    }

    private boolean isCoolDownEnabledForPrimary() {