Merge "CallAttributes.equals does deep check"

This commit is contained in:
Jordan Liu
2019-02-05 00:59:31 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 7 deletions

View File

@@ -117,9 +117,9 @@ public class CallAttributes implements Parcelable {
CallAttributes s = (CallAttributes) o;
return (mPreciseCallState == s.mPreciseCallState
return (Objects.equals(mPreciseCallState, s.mPreciseCallState)
&& mNetworkType == s.mNetworkType
&& mCallQuality == s.mCallQuality);
&& Objects.equals(mCallQuality, s.mCallQuality));
}
/**

View File

@@ -287,11 +287,11 @@ public final class PreciseCallState implements Parcelable {
return false;
}
PreciseCallState other = (PreciseCallState) obj;
return (mRingingCallState != other.mRingingCallState &&
mForegroundCallState != other.mForegroundCallState &&
mBackgroundCallState != other.mBackgroundCallState &&
mDisconnectCause != other.mDisconnectCause &&
mPreciseDisconnectCause != other.mPreciseDisconnectCause);
return (mRingingCallState == other.mRingingCallState
&& mForegroundCallState == other.mForegroundCallState
&& mBackgroundCallState == other.mBackgroundCallState
&& mDisconnectCause == other.mDisconnectCause
&& mPreciseDisconnectCause == other.mPreciseDisconnectCause);
}
@Override