Merge "Call super.updateState() to set checked status of work profile switch" into main

This commit is contained in:
Yuri Lin
2025-02-19 14:30:49 -08:00
committed by Android (Google) Code Review

View File

@@ -131,6 +131,7 @@ public class PoliteNotifWorkProfileToggleController extends TogglePreferenceCont
public void updateState(@Nullable Preference preference) { public void updateState(@Nullable Preference preference) {
if (preference == null) return; if (preference == null) return;
preference.setVisible(isAvailable()); preference.setVisible(isAvailable());
super.updateState(preference);
} }
private boolean isCoolDownEnabledForPrimary() { private boolean isCoolDownEnabledForPrimary() {