commit | 4d851ae6b80d079c27d160504944226d7aacd086 | [log] [tgz] |
---|---|---|
author | Ioana Alexandru <aioana@google.com> | Thu Jul 04 15:15:21 2024 +0200 |
committer | Ioana Alexandru <aioana@google.com> | Fri Jul 05 09:51:54 2024 +0000 |
tree | ffc8b1b55489b676f0c67f194930647dd0e7a8de | |
parent | 6fbe588065196cb85337b9867f56881138816356 [diff] |
Pass a bg handler when registering broadcast receiver This should hopefully ensure that we're avoiding doing binder calls on the main thread. I made it nullable because we don't have a great way to fake a handler in SettingsLib, unless we want to add a dependency on SystemUITestUtils... Bug: 348810424 Test: ZenModeRepositoryTest Flag: com.android.settingslib.flags.volume_panel_broadcast_fix Change-Id: I6aa1e45efa08dcd7e3352db3b383d317d1a56b90