Merge "Fix equality method implementation in BandConfig class." am: 30a34ec0e2

am: 5acbf70872

Change-Id: I57e6fa0f946f25048da1524f07fa4eb13fdb2f1c
This commit is contained in:
Tomasz Wasilczyk
2017-04-28 20:25:43 +00:00
committed by android-build-merger

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;
}
}