Merge "Avoid double lookup in cdm association store"
This commit is contained in:
committed by
Android (Google) Code Review
commit
541ffd698b
@@ -125,8 +125,7 @@ class AssociationStoreImpl implements AssociationStore {
|
||||
// Update the MacAddress-to-List<Association> map if needed.
|
||||
final MacAddress updatedAddress = updated.getDeviceMacAddress();
|
||||
final MacAddress currentAddress = current.getDeviceMacAddress();
|
||||
macAddressChanged = Objects.equals(
|
||||
current.getDeviceMacAddress(), updated.getDeviceMacAddress());
|
||||
macAddressChanged = Objects.equals(currentAddress, updatedAddress);
|
||||
if (macAddressChanged) {
|
||||
if (currentAddress != null) {
|
||||
mAddressMap.get(currentAddress).remove(id);
|
||||
|
||||
Reference in New Issue
Block a user