Allow SettingsMainSwitchBars to be disabled

Test: manual, looking at notification settings
Fixes: 182859292
Change-Id: I06db2a0984b0dcbf71a69fc8f58e54b4670652a8
This commit is contained in:
Julia Reynolds
2021-03-16 14:55:18 -04:00
parent e0c081b02e
commit 5166e3939d
2 changed files with 4 additions and 4 deletions

View File

@@ -186,6 +186,7 @@ public class SettingsMainSwitchPreference extends TwoStatePreference {
* Enable or disable the text and switch.
*/
public void setSwitchBarEnabled(boolean enabled) {
setEnabled(enabled);
if (mMainSwitchBar != null) {
mMainSwitchBar.setEnabled(enabled);
}