Merge "Fixed the issue that the MainSwitchPreference is invalid after the page is resumed." into tm-dev