From 248edc3e969217aec1fcce7f324cbae6c46da0a3 Mon Sep 17 00:00:00 2001 From: Prerepa Viswanadham Date: Wed, 15 Oct 2014 16:36:01 -0700 Subject: [PATCH] Update javadoc comments for getBluetoothLeAdvertiser() To clarify that BluetoothLeAdvertiser object will return null when BT is off OR if the hw doesn't support these capabilities bug: 18006072 Change-Id: I635d7971711a3cae7c58f7a0636faf9a03f19970 --- core/java/android/bluetooth/BluetoothAdapter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index f0b609aec1eae..5564af789e13e 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -454,8 +454,9 @@ public final class BluetoothAdapter { } /** - * Returns a {@link BluetoothLeAdvertiser} object for Bluetooth LE Advertising operations, or - * null if Bluetooth LE Advertising is not support on this device. + * Returns a {@link BluetoothLeAdvertiser} object for Bluetooth LE Advertising operations. + * Will return null if Bluetooth is turned off or if Bluetooth LE Advertising is not + * supported on this device. *

* Use {@link #isMultipleAdvertisementSupported()} to check whether LE Advertising is supported * on this device before calling this method.