Merge "Bluetooth: preserve one advertisement slot for GMS core"

am: 00cc1847d3

Change-Id: I5a6d39107b49690e11afd8c7e394554fbf616e11
This commit is contained in:
Miao-chen Chou
2018-03-16 01:13:07 +00:00
committed by android-build-merger

View File

@@ -676,6 +676,10 @@ public final class BluetoothAdapter {
if (!getLeAccess()) {
return null;
}
if (!isMultipleAdvertisementSupported()) {
Log.e(TAG, "Bluetooth LE advertising not supported");
return null;
}
synchronized (mLock) {
if (sBluetoothLeAdvertiser == null) {
sBluetoothLeAdvertiser = new BluetoothLeAdvertiser(mManagerService);