Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b64a3ad7 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Bluetooth: Make ScanRecord.getServiceSolicitationUuids NonNull"

am: da2b966f6e

Change-Id: I29063ecdafccecf10d73ea091d1eafd3d4e934ad
parents 79d1dbea 0f672c0a
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.bluetooth.le;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.UnsupportedAppUsage;
import android.bluetooth.BluetoothUuid;
@@ -97,7 +98,7 @@ public final class ScanRecord {
     * Returns a list of service solicitation UUIDs within the advertisement that are used to
     * identify the Bluetooth GATT services.
     */
    @Nullable
    @NonNull
    public List<ParcelUuid> getServiceSolicitationUuids() {
        return mServiceSolicitationUuids;
    }
@@ -297,9 +298,6 @@ public final class ScanRecord {
            if (serviceUuids.isEmpty()) {
                serviceUuids = null;
            }
            if (serviceSolicitationUuids.isEmpty()) {
                serviceSolicitationUuids = null;
            }
            return new ScanRecord(serviceUuids, serviceSolicitationUuids, manufacturerData,
                    serviceData, advertiseFlag, txPowerLevel, localName, scanRecord);
        } catch (Exception e) {