private void removeListeners()
 {
     mPubSub.removeListener(HikePubSub.MESSAGE_RECEIVED, this);
     mPubSub.removeListener(HikePubSub.SEND_NEW_MSG, this);
     mPubSub.removeListener(HikePubSub.MSG_READ, this);
     mPubSub.removeListener(HikePubSub.USER_JOINED, this);
     mPubSub.removeListener(HikePubSub.USER_LEFT, this);
     mPubSub.removeListener(HikePubSub.UPDATE_UI, this);
     mPubSub.removeListener(HikePubSub.SMS_CREDIT_CHANGED, this);
 }
Beispiel #2
0
 private void removeListeners()
 {
     try
     {
         mPubSub.removeListener(HikePubSub.UPDATE_UI, this);
         mPubSub.removeListener(HikePubSub.PARTICIPANT_JOINED_GROUP, this);
         mPubSub.removeListener(HikePubSub.PARTICIPANT_LEFT_GROUP, this);
         mPubSub.removeListener(HikePubSub.GROUP_NAME_CHANGED, this);
         mPubSub.removeListener(HikePubSub.GROUP_END, this);
         mPubSub.removeListener(HikePubSub.USER_JOINED, this);
         mPubSub.removeListener(HikePubSub.USER_LEFT, this);
     }
     catch
     {
     }
 }
 private void removeListeners()
 {
     mPubSub.removeListener(HikePubSub.MESSAGE_SENT, this);
     mPubSub.removeListener(HikePubSub.MESSAGE_RECEIVED_READ, this);
     mPubSub.removeListener(HikePubSub.MESSAGE_DELETED, this);
     mPubSub.removeListener(HikePubSub.BLOCK_USER, this);
     mPubSub.removeListener(HikePubSub.UNBLOCK_USER, this);
     mPubSub.removeListener(HikePubSub.ADD_OR_UPDATE_PROFILE, this);
     mPubSub.removeListener(HikePubSub.GROUP_LEFT, this);
     mPubSub.removeListener(HikePubSub.BLOCK_GROUPOWNER, this);
     mPubSub.removeListener(HikePubSub.UNBLOCK_GROUPOWNER, this);
     mPubSub.removeListener(HikePubSub.DELETE_CONVERSATION, this);
     mPubSub.removeListener(HikePubSub.DELETE_ALL_CONVERSATIONS, this);
     mPubSub.removeListener(HikePubSub.ATTACHMENT_RESEND, this);
     mPubSub.removeListener(HikePubSub.ATTACHMENT_SENT, this);
     mPubSub.removeListener(HikePubSub.FORWARD_ATTACHMENT, this);
 }