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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13746323

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I75a8d4f63453d2b369d7274eb360ce5be35a3ab4
This commit is contained in:
Stanley Wang
2021-03-04 14:43:33 +00:00
committed by Automerger Merge Worker

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);
}