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

Commit b8ab2995 authored by Stanley Tng's avatar Stanley Tng Committed by android-build-merger
Browse files

Merge "Remove whitelisted device when disconnecting Hearing Aids Profile"

am: d949c6a7

Change-Id: Ia7e3c4a01a87dfd1d03d28e0e27b97b02eabbf54
parents 3013d384 d949c6a7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -169,7 +169,8 @@ final class HearingAidStateMachine extends StateMachine {
                    }
                    break;
                case DISCONNECT:
                    Log.w(TAG, "Disconnected: DISCONNECT ignored: " + mDevice);
                    Log.d(TAG, "Disconnected: DISCONNECT: call native disconnect for " + mDevice);
                    mNativeInterface.disconnectHearingAid(mDevice);
                    break;
                case STACK_EVENT:
                    HearingAidStackEvent event = (HearingAidStackEvent) message.obj;
@@ -480,7 +481,7 @@ final class HearingAidStateMachine extends StateMachine {
        private void processConnectionEvent(int state) {
            switch (state) {
                case HearingAidStackEvent.CONNECTION_STATE_DISCONNECTED:
                    Log.i(TAG, "Disconnected from " + mDevice);
                    Log.i(TAG, "Disconnected from " + mDevice + " but still in Whitelist");
                    transitionTo(mDisconnected);
                    break;
                case HearingAidStackEvent.CONNECTION_STATE_DISCONNECTING: