Merge "Preventing leak" into mnc-dev

This commit is contained in:
Jerome Poichet
2015-06-25 21:21:00 +00:00
committed by Android (Google) Code Review

View File

@@ -152,7 +152,6 @@ public final class BluetoothLeAdvertiser {
*/
public void stopAdvertising(final AdvertiseCallback callback) {
synchronized (mLeAdvertisers) {
BluetoothLeUtils.checkAdapterStateOn(mBluetoothAdapter);
if (callback == null) {
throw new IllegalArgumentException("callback cannot be null");
}