commit | 1c85e7743ac852ea25bde1e98d508c79629f128a | [log] [tgz] |
---|---|---|
author | Jordan Liu <jminjie@google.com> | Tue Aug 06 16:06:19 2019 -0700 |
committer | Jordan Liu <jminjie@google.com> | Tue Aug 06 23:27:24 2019 +0000 |
tree | e602e32a9e013a6423ced704f5c0799754c69200 | |
parent | 4e9ab3d3fdd47d017f1867ae5625e9700310905a [diff] |
Do not use isAudioOn hidden API Instead we can use BluetoothHeadset.getConnectedDevices and check the size of the list. This is the same behavior (actually isAudioOn would have included connecting devices, but we don't include that because we shouldn't) Bug: 137202333 Test: manual Change-Id: I928c5a2e944b74559304ad9337a8d02a59721492