commit | 494e761378c6889cd1733f364053896a79790a01 | [log] [tgz] |
---|---|---|
author | Hall Liu <hallliu@google.com> | Tue Apr 11 18:05:16 2017 -0700 |
committer | Hall Liu <hallliu@google.com> | Fri Apr 14 11:31:11 2017 -0700 |
tree | 7a35e9c5a7dcbf559da8aaaff13f18f9a9b892fb | |
parent | f19e93c865ad756ada44f0592f7cde60552c04ef [diff] |
Get bluetooth state on the BluetoothRouteManager looper When calling getCurrentState() on a state machine from outside its looper, an ArrayOutOfBoundsException may occur if the state machine is mid-transition. This change moves the call to getCurrentState into a Runnable that's run on the looper. Change-Id: I079552541367733bad5aad1ca6753529f0043143 Fixes: 37224925 Test: manual