Merge "Add note for FLAG_CANCEL_CURRENT when stopping scan"

am: 041eb388de

Change-Id: Ida6b217b550bd98157afdfc98f2e8ec16232a2eb
This commit is contained in:
Stanley Tng
2018-08-21 13:14:31 -07:00
committed by android-build-merger

View File

@@ -275,7 +275,9 @@ public final class BluetoothLeScanner {
}
/**
* Stops an ongoing Bluetooth LE scan started using a PendingIntent.
* Stops an ongoing Bluetooth LE scan started using a PendingIntent. When creating the
* PendingIntent parameter, please do not use the FLAG_CANCEL_CURRENT flag. Otherwise, the stop
* scan may have no effect.
*
* @param callbackIntent The PendingIntent that was used to start the scan.
* @see #startScan(List, ScanSettings, PendingIntent)