Merge "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) {
|
Request removeRequest(IBinder reqInterface) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
Request req = mActiveRequests.get(reqInterface);
|
return mActiveRequests.remove(reqInterface);
|
||||||
if (req != null) {
|
|
||||||
mActiveRequests.remove(req);
|
|
||||||
}
|
|
||||||
return req;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user