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

Commit 8ef92bd3 authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Frameworks/base: Fix request removal in VoiceInteractionSession

Fix and simplify removeRequest.

Bug: 19797138
Change-Id: I0eca877e3109c9f39cebd4c888f166ce334fcc0e
parent 28e6aeca
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -436,11 +436,7 @@ public abstract class VoiceInteractionSession implements KeyEvent.Callback {

    Request removeRequest(IBinder reqInterface) {
        synchronized (this) {
            Request req = mActiveRequests.get(reqInterface);
            if (req != null) {
                mActiveRequests.remove(req);
            }
            return req;
            return mActiveRequests.remove(reqInterface);
        }
    }