summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ling Ma <linggm@google.com> 2022-12-09 11:30:09 -0800
committer Ling Ma <linggm@google.com> 2022-12-09 16:47:07 -0800
commitfeffad62d3ef19b4e128387a991f6492280df6cf (patch)
treec01330a5b468c3ebddc286ec207f684f1950379c
parent697b47b69253351fa661d0ba375896b7c233c04e (diff)
Clean up the check of AuthType in simialr()
Only check whether authType are the same since it's impossible for authType to be -1(UNSPECIFIED_INT). This change is a cleanup of the check, doesn't change the current behavior. Fix: 261941568 Test: atest Change-Id: I1b19e91d0f3e443a9cc611c88ae289ef3e6d9ce2 Merged-In: I1b19e91d0f3e443a9cc611c88ae289ef3e6d9ce2
-rw-r--r--telephony/java/android/telephony/data/ApnSetting.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/data/ApnSetting.java b/telephony/java/android/telephony/data/ApnSetting.java
index b0ddf2c28dff..0debecfcd11a 100644
--- a/telephony/java/android/telephony/data/ApnSetting.java
+++ b/telephony/java/android/telephony/data/ApnSetting.java
@@ -1285,7 +1285,7 @@ public class ApnSetting implements Parcelable {
&& xorEqualsInt(this.mMmsProxyPort, other.mMmsProxyPort))
&& xorEqualsString(this.mUser, other.mUser)
&& xorEqualsString(this.mPassword, other.mPassword)
- && xorEqualsInt(this.mAuthType, other.mAuthType)
+ && Objects.equals(this.mAuthType, other.mAuthType)
&& !typeSameAny(this, other)
&& Objects.equals(this.mOperatorNumeric, other.mOperatorNumeric)
&& Objects.equals(this.mProtocol, other.mProtocol)