summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Program.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
commitd56a8bec5c22cc91350940100849867a5d700eb5 (patch)
treee2056d0327c57999104b0a8665d74d08daec10b0 /rs/java/android/renderscript/Program.java
parent322df2899b55aad62e587f1a42f48d10cfb0d644 (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 f7bd6b26c73b7ea0bbfd00b75c23895eca281aff)
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions