[Catalyst] Support callChangeListener for MainSwitchBarPreference

Bug: 335132588
Flag: EXEMPT library
Test: manual
Change-Id: I6924ccfa0d66b9a643811f49a2ec3fcdc1d749ae
This commit is contained in:
Jacky Wang
2024-12-09 16:59:16 +08:00
parent 2e3fc47765
commit f79173a664
2 changed files with 6 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ public class SettingsMainSwitchBar extends MainSwitchBar {
return true;
}
return mSwitch.performClick();
return callPreChangeListener() && mSwitch.performClick();
}
@Override