File tree Expand file tree Collapse file tree
app/src/main/java/net/sharksystem/asap/android/apps Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323import net .sharksystem .asap .android .ASAPServiceCreationIntent ;
2424import net .sharksystem .asap .android .Util ;
2525import net .sharksystem .asap .utils .Helper ;
26+ import net .sharksystem .asap .utils .PeerIDHelper ;
2627import net .sharksystem .utils .Utils ;
2728
2829import 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 ///////////////////////////////////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments