commit | b4d0b9171a0f14b059e05ea2024f27d52c95bc2e | [log] [tgz] |
---|---|---|
author | Hall Liu <hallliu@google.com> | Tue Apr 11 18:05:16 2017 -0700 |
committer | Hall Liu <hallliu@google.com> | Tue Apr 11 18:05:16 2017 -0700 |
tree | a3483890d9479868f7b89273cdf39d3186d7b5ff | |
parent | 64b7f379f1933acbe1aa083a2680d9337d2fd31f [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