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

Commit 1823aca9 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

am: b8ab2995

Change-Id: I5aab8575b2ef7da8d3e5fec9385da8c569a649ab
parents 906de7c8 b8ab2995
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: