Merge "Fix that when scrolling to the top on Wi-Fi page, the "Turn off SIM" notification will pop up." into sc-dev

This commit is contained in:
Stanley Wang
2021-03-04 14:12:47 +00:00
committed by Android (Google) Code Review

View File

@@ -176,6 +176,7 @@ public class SettingsMainSwitchPreference extends TwoStatePreference {
* Update the status of switch but doesn't notify the mOnBeforeListener.
*/
public void setCheckedInternal(boolean checked) {
super.setChecked(checked);
if (mMainSwitchBar != null) {
mMainSwitchBar.setCheckedInternal(checked);
}