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

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

Merge "Hearing Aid profile" am: aca4460b64 am: 313ae859

am: 8b598eff

Change-Id: Idd601780e2e9483324dbf2e317c925daa78fa049
parents fbf25dc0 8b598eff
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2307,6 +2307,9 @@ public final class BluetoothAdapter {
        } else if (profile == BluetoothProfile.HID_DEVICE) {
            BluetoothHidDevice hidDevice = new BluetoothHidDevice(context, listener);
            return true;
        } else if (profile == BluetoothProfile.HEARING_AID) {
            BluetoothHearingAid hearingAid = new BluetoothHearingAid(context, listener);
            return true;
        } else {
            return false;
        }
@@ -2389,6 +2392,9 @@ public final class BluetoothAdapter {
                BluetoothHidDevice hidDevice = (BluetoothHidDevice) proxy;
                hidDevice.close();
                break;
            case BluetoothProfile.HEARING_AID:
                BluetoothHearingAid hearingAid = (BluetoothHearingAid) proxy;
                hearingAid.close();
        }
    }