summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothAvrcpController.java
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2017-08-17 07:19:12 -0700
committerAndre Eisenbach <eisenbach@google.com>2017-08-17 22:34:40 +0000
commit6da633fa5002bf14ff8e85e7c738d84cf00ac2e9 (patch)
tree297b3b163ecd1920592f27107fa8bfb3941f61c5 /framework/java/android/bluetooth/BluetoothAvrcpController.java
parentec21cde845b7c5fb7565626793b6ce2996b23d85 (diff)
Bluetooth: Fix startAdvertisingSet error handling
Calls to old advertising API (startAdvertising), should never throw exceptions. Instead, it used to post failure callback. This behaviour was accidentally modified when implementing new API. Right now, instead of posting error callback, we throw IllegalArgumentException if we fail to obtain BluetoothGatt object, or the call to startAdvertisingSet fails. This patch brings back the old behaviour to the API. It also makes new API post callback instead of throwing exception in this error case. Bug: 63819108 Test: manual Change-Id: I897b99839f899ca3f3dc609918d665c8c327b777 Merged-In: I897b99839f899ca3f3dc609918d665c8c327b777 (cherry picked from commit 91135a1c0de13cd74dfecc2028fbdd8eb56cd705)
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothAvrcpController.java')
0 files changed, 0 insertions, 0 deletions