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

Commit b12baad9 authored by Chung-yih Wang's avatar Chung-yih Wang
Browse files

Add equals() funcation for SipPhone.

Since we will use sipuri to match the same phone object.

Change-Id: I582779e51e447bb8d822c105cf0d682651c138d2
parent 6dc003a7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;