public void onOpenConversation(Conversation conversation,ConversationLegacy conversationLegacy){
  long threadId=mConversation != null ? mConversation.getThreadId() : -1;
  if (threadId > 0)   sendPendingDelayedMessage();
  long newThreadId=conversation != null ? conversation.getThreadId() : -1;
  if (mConversation != null && mConversationLegacy != null && threadId != newThreadId) {
    saveDraft();
  }
  mConversation=conversation;
  mConversationLegacy=conversationLegacy;
  if (threadId != newThreadId || newThreadId == -1) {
    setupDraft();
  }
}

public void onOpenConversation ( Conversation conversation , ConversationLegacy conversationLegacy ) { long threadId = mConversation != null ? mConversation . getThreadId ( ) : - 1 ; if ( threadId > 0 ) sendPendingDelayedMessage ( ) ; long newThreadId = conversation != null ? conversation . getThreadId ( ) : - 1 ; if ( mConversation != null && mConversationLegacy != null && threadId != newThreadId ) { saveDraft ( ) ; } mConversation = conversation ; mConversationLegacy = conversationLegacy ; if ( threadId != newThreadId || newThreadId == - 1 ) { setupDraft ( ) ; } }
sets the conversation for this compose view . this will setup the composeview with drafts .
