Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2aded2d authored by Chung-yih Wang's avatar Chung-yih Wang Committed by Android Git Automerger
Browse files

am 2143ade8: am b12baad9: Add equals() funcation for SipPhone.

Merge commit '2143ade8'

* commit '2143ade8':
  Add equals() funcation for SipPhone.
parents be988e3a 2143ade8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -114,6 +114,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;