commit | 3c3f362125daecdda16f814a9bc6695a4f82a2fb | [log] [tgz] |
---|---|---|
author | Jason Chiu <chiujason@google.com> | Thu Jun 11 17:40:30 2020 +0800 |
committer | Jason Chiu <chiujason@google.com> | Thu Jun 11 18:39:29 2020 +0800 |
tree | 399b62823e885f55f9c4998adba9c4d5a401c711 | |
parent | 03b20f864a3e5e349c5f7fc7c7c4a5109515130a [diff] |
Improve BT slice card loading performance The bottleneck is getting LocalBluetoothManager the first time. 1. Initialize LocalBluetoothManager earlier and asynchronously. 2. Don't block in slice's constructor and getSlice(). - Initialize the bt updaters until the manager is ready. - Just show a header if the manager is not ready yet. Fixes: 157702021 Test: robotest Change-Id: I427df55f259b45ba4c37557b22e09dcc24079e93