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

This commit is contained in:
Treehugger Robot
2018-03-15 23:50:49 +00:00
committed by Gerrit Code Review

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);