Fix equality method implementation in BandConfig class.

Test: instrumentation (in master branch)
Bug: b/36863239
Change-Id: I2f3b68ba3fac75b849ee99dc06d0a13478168b7e
This commit is contained in:
Tomasz Wasilczyk
2017-04-28 08:19:34 -07:00
parent e08bd750c8
commit dd767065fe

View File

@@ -755,8 +755,9 @@ public class RadioManager {
if (!(obj instanceof BandConfig))
return false;
BandConfig other = (BandConfig) obj;
if (mDescriptor != other.getDescriptor())
return false;
BandDescriptor otherDesc = other.getDescriptor();
if ((mDescriptor == null) != (otherDesc == null)) return false;
if (mDescriptor != null && !mDescriptor.equals(otherDesc)) return false;
return true;
}
}