commit | 9d254516a9edf9aa6d524dc6d6c313156d23bfb1 | [log] [tgz] |
---|---|---|
author | Stanley Wang <stanleytfwang@google.com> | Thu Mar 24 11:41:50 2022 +0800 |
committer | Stanley Wang <stanleytfwang@google.com> | Thu Mar 24 11:41:50 2022 +0800 |
tree | 426ff70d60866193a0f952aa6ab65b0f4c033337 | |
parent | 3ecf7b2c3ef2e5e92e8387319989ec5fa8e1d934 [diff] |
Fixed the issue that the MainSwitchPreference is invalid after the 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