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

Commit caad481d authored by Sanket Agarwal's avatar Sanket Agarwal Committed by Gerrit Code Review
Browse files

Merge "PBAP check device on disconnect"

parents f6d6a68b d7462e7b
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -199,8 +199,11 @@ final class PbapClientStateMachine extends StateMachine {
            if (DBG) Log.d(TAG,"Processing MSG " + message.what + " from " + this.getName());
            switch (message.what) {
                case MSG_DISCONNECT:
                    if (message.obj instanceof BluetoothDevice &&
                            ((BluetoothDevice) message.obj).equals(mCurrentDevice)) {
                        removeMessages(MSG_CONNECT_TIMEOUT);
                        transitionTo(mDisconnecting);
                    }
                    break;

                case MSG_CONNECTION_COMPLETE:
@@ -299,7 +302,10 @@ final class PbapClientStateMachine extends StateMachine {
                    break;

                case MSG_DISCONNECT:
                    if ((message.obj instanceof BluetoothDevice) &&
                           ((BluetoothDevice) message.obj).equals(mCurrentDevice)) {
                        transitionTo(mDisconnecting);
                    }
                    break;

                case MSG_RESUME_DOWNLOAD: