diff options
author | Chung-yih Wang <cywang@google.com> | 2010-09-06 10:21:18 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2010-09-06 12:05:46 +0800 |
commit | b12baad9357c6e6aec1f7d84fd041c54fe963407 (patch) | |
tree | 18305b415e1bb311320b5d2182b58d020fa199b8 /telephony | |
parent | 6dc003a73f7f01aa5dd5831e777e2aa44f65b032 (diff) | |
download | frameworks_base-b12baad9357c6e6aec1f7d84fd041c54fe963407.zip frameworks_base-b12baad9357c6e6aec1f7d84fd041c54fe963407.tar.gz frameworks_base-b12baad9357c6e6aec1f7d84fd041c54fe963407.tar.bz2 |
Add equals() funcation for SipPhone.
Since we will use sipuri to match the same phone object.
Change-Id: I582779e51e447bb8d822c105cf0d682651c138d2
Diffstat (limited to 'telephony')
-rwxr-xr-x | telephony/java/com/android/internal/telephony/sip/SipPhone.java | 4 |
1 files changed, 4 insertions, 0 deletions
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; |