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 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: