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

Commit 867a93d3 authored by Pengquan Meng's avatar Pengquan Meng
Browse files

Remove release timeout event

The timeout message of release focus has not remove when the
ConnectionService is released. This is because the obj of the message
changed from FocusRequest to MessageArgs.

Test: manual
Bug: 73990638
Change-Id: I7f1b71097baf0d4bd31692c1e4e7af9db47656a1
(cherry picked from commit d86cc340)
parent b4088ee1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -370,7 +370,7 @@ public class ConnectionServiceFocusManager {
        // The ConnectionService can call onConnectionServiceFocusReleased even if it's not the
        // current focus connection service, nothing will be changed in this case.
        if (Objects.equals(mCurrentFocus, connectionServiceFocus)) {
            mEventHandler.removeMessages(MSG_RELEASE_FOCUS_TIMEOUT, mCurrentFocusRequest);
            mEventHandler.removeMessages(MSG_RELEASE_FOCUS_TIMEOUT);
            ConnectionServiceFocus newCSF = null;
            if (mCurrentFocusRequest != null) {
                newCSF = mCurrentFocusRequest.call.getConnectionServiceWrapper();