Correct the operationID in resetUsbPort
Fixed the operationID when the operationID collisions, create another key Bug: 217369748 Signed-off-by: Ricky Niu <rickyniu@google.com> Change-Id: I22126b4c04b5c92bc9fc9db7405e7ee9d2806b49
This commit is contained in:
@@ -296,8 +296,8 @@ public final class UsbPortAidl implements UsbPortHal {
|
||||
+ operationID + " key:" + key);
|
||||
}
|
||||
try {
|
||||
sCallbacks.put(operationID, callback);
|
||||
mProxy.resetUsbPort(portName, operationID);
|
||||
sCallbacks.put(key, callback);
|
||||
mProxy.resetUsbPort(portName, key);
|
||||
} catch (RemoteException e) {
|
||||
logAndPrintException(mPw,
|
||||
"resetUsbPort: Failed to resetUsbPort: portID="
|
||||
|
||||
Reference in New Issue
Block a user