From b12baad9357c6e6aec1f7d84fd041c54fe963407 Mon Sep 17 00:00:00 2001 From: Chung-yih Wang Date: Mon, 6 Sep 2010 10:21:18 +0800 Subject: Add equals() funcation for SipPhone. Since we will use sipuri to match the same phone object. Change-Id: I582779e51e447bb8d822c105cf0d682651c138d2 --- telephony/java/com/android/internal/telephony/sip/SipPhone.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'telephony') diff --git a/telephony/java/com/android/internal/telephony/sip/SipPhone.java b/telephony/java/com/android/internal/telephony/sip/SipPhone.java index 1325dd3..3905fea 100755 --- a/telephony/java/com/android/internal/telephony/sip/SipPhone.java +++ b/telephony/java/com/android/internal/telephony/sip/SipPhone.java @@ -107,6 +107,10 @@ public class SipPhone extends SipPhoneBase { return mProfile.getUriString(); } + public boolean equals(SipPhone phone) { + return getSipUri().equals(phone.getSipUri())); + } + public boolean canTake(Object incomingCall) { synchronized (SipPhone.class) { if (!(incomingCall instanceof SipAudioCall)) return false; -- cgit v1.1