summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothInputStream.java
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2017-08-17 07:19:12 -0700
committerJakub Pawlowski <jpawlowski@google.com>2017-08-17 07:36:37 -0700
commit91135a1c0de13cd74dfecc2028fbdd8eb56cd705 (patch)
treeeab2d1d43226051571261e0d4be905933ba2dd68 /framework/java/android/bluetooth/BluetoothInputStream.java
parent90740d5520ca5f34b7bda177bdba5a343bf331b4 (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
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothInputStream.java')
0 files changed, 0 insertions, 0 deletions