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

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

Merge "Remove whitelisted device when disconnecting Hearing Aids Profile"

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