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

Commit f4bb3dfc authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "gatt: correct some trivial checks"

parents 2c2991c9 3ae8efe7
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -3779,13 +3779,18 @@ public class GattService extends ProfileService {
    }

    private boolean isLeAudioSrvcUuid(final UUID uuid) {
        return LE_AUDIO_SERVICE_UUIDS.equals(uuid);
        for (UUID leAudioUuid : LE_AUDIO_SERVICE_UUIDS) {
            if (leAudioUuid.equals(uuid)) {
                return true;
            }
        }
        return false;
    }

    private boolean isRestrictedSrvcUuid(final UUID uuid) {
        return isLeAudioSrvcUuid(uuid) ||
               isAndroidTvRemoteSrvcUuid(uuid) ||
               isLeAudioSrvcUuid(uuid);
        return isFidoSrvcUuid(uuid)
                || isAndroidTvRemoteSrvcUuid(uuid)
                || isLeAudioSrvcUuid(uuid);
    }

    private int getDeviceType(BluetoothDevice device) {