page is resumed.
- MainSwithBar will be recreated after the page is resumed. We
should keep the OnMainSwitchChangeListener for
MainSwitchPreference and re-register the listeners after the
page is resumed.
Bug: 225289727
Test: manual test and see the UI
Change-Id: I1b959f36fbd4c57fddf6b37ea00f11c486bbe5b9