commit | 7acb899031eb76a4e784a5c56773eafc369d3997 | [log] [tgz] |
---|---|---|
author | Fabian Kozynski <kozynski@google.com> | Tue Feb 22 13:37:30 2022 -0500 |
committer | Fabian Kozynski <kozynski@google.com> | Tue Feb 22 13:40:39 2022 -0500 |
tree | c5167e0e8efddf6e7a035d9d33be0f5514674e49 | |
parent | 4d897c6ad0f07d78765c67424c61f9521be4f28a [diff] |
Move SettingObserver#setListening out of frequent path FooterActionsController#setListening is called in the main thread because it updates views. There was a register/unregister content observer in that path that was causing jank. As the setting doesn't change frequently, move the register/unregister to match the view attached/detached. Test: atest FooterActionsController Test: manual Fixes: 220874628 Change-Id: I9b5130eaee71ab8d5eb226a3078631ac7d153e23