* commit '0e6b4da5ca53d338f351827f7a351edcd6281aaa': Frameworks/base: Fix request removal in VoiceInteractionSession
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user