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

Commit c60d80a7 authored by Yuyang Huang's avatar Yuyang Huang
Browse files

Fix ASHA isValidDevice check

Bug: 271697257
Test: atest HearingAidProfileTest
Change-Id: I0092008eec635ea6ae18aad61dc12a96241963a2
parent 5b6154fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -908,7 +908,7 @@ public final class BluetoothHearingAid implements BluetoothProfile {
        }
        final IBluetoothHearingAid service = getService();
        AdvertisementServiceData result = null;
        if (service == null || !isEnabled() || isValidDevice(device)) {
        if (service == null || !isEnabled() || !isValidDevice(device)) {
            Log.w(TAG, "Proxy not attached to service");
            if (DBG) {
                log(Log.getStackTraceString(new Throwable()));