Merge "Frameworks/base: Fix request removal in VoiceInteractionSession"

This commit is contained in:
Andreas Gampe
2015-03-28 04:50:07 +00:00
committed by Gerrit Code Review

View File

@@ -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);
}
}