Merge "Fix equality method implementation in BandConfig class."
am: 30a34ec0e2
Change-Id: I15d46cb69410efdc369d628f1681a880c1420d9d
This commit is contained in:
@@ -755,8 +755,9 @@ public class RadioManager {
|
|||||||
if (!(obj instanceof BandConfig))
|
if (!(obj instanceof BandConfig))
|
||||||
return false;
|
return false;
|
||||||
BandConfig other = (BandConfig) obj;
|
BandConfig other = (BandConfig) obj;
|
||||||
if (mDescriptor != other.getDescriptor())
|
BandDescriptor otherDesc = other.getDescriptor();
|
||||||
return false;
|
if ((mDescriptor == null) != (otherDesc == null)) return false;
|
||||||
|
if (mDescriptor != null && !mDescriptor.equals(otherDesc)) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user