@Override public void loadMenuConversation(String conversationId) { menuConversation = conversationsList.getConversation(conversationId); menuConversation.removeUpdateListener(menuConversationUpdateListener); menuConversation.addUpdateListener(menuConversationUpdateListener); menuConversationUpdateListener.updated(); }
@Override public void tearDown() { if (selectedConvSubscription != null) { selectedConvSubscription.cancel(); } if (syncIndicator != null) { syncIndicator.removeUpdateListener(syncStateUpdateListener); syncIndicator = null; } if (conversationsList != null) { conversationsList.removeUpdateListener(conversationListUpdateListener); conversationsList = null; } if (inboxList != null) { inboxList.removeUpdateListener(inboxListUpdateListener); inboxList = null; } if (menuConversation != null) { menuConversation.removeUpdateListener(menuConversationUpdateListener); menuConversation = null; } establishedConversationsList = null; selectedConvSubscription = null; selectedConversation = null; conversationUiSignal = null; }