Skip to content

Commit d4eb20d

Browse files
committed
I would call it release candidate
1 parent e19e65c commit d4eb20d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

app/src/main/java/net/sharksystem/asap/android/apps/ASAPAndroidPeer.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import net.sharksystem.asap.android.ASAPServiceCreationIntent;
2424
import net.sharksystem.asap.android.Util;
2525
import net.sharksystem.asap.utils.Helper;
26+
import net.sharksystem.asap.utils.PeerIDHelper;
2627
import net.sharksystem.utils.Utils;
2728

2829
import java.io.IOException;
@@ -653,6 +654,14 @@ public CharSequence getPeerID() {
653654
return this.asapOwner;
654655
}
655656

657+
public boolean samePeer(ASAPPeer otherPeer) {
658+
return this.samePeer(otherPeer.getPeerID());
659+
}
660+
661+
public boolean samePeer(CharSequence otherPeerID) {
662+
return PeerIDHelper.sameID(this.getPeerID(), otherPeerID);
663+
}
664+
656665
///////////////////////////////////////////////////////////////////////////////////////////////
657666
// ASAP messages are sent with the service //
658667
///////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)