From: Oleksander Kostenko Date: Mon, 17 Oct 2016 14:24:26 +0000 (+0300) Subject: TSAM-8868 Missing function when tap menu on conversation view X-Git-Tag: submit/tizen/20161018.151522~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bee3d4829415c15db63f1f20b79ee6e0522fb7b6;p=profile%2Fmobile%2Fapps%2Fnative%2Fmessage.git TSAM-8868 Missing function when tap menu on conversation view Change-Id: I2d76519a2c102d7615cf8dc44019ef5501246861 Signed-off-by: Oleksander Kostenko --- diff --git a/src/Conversation/Main/Controller/src/Conversation.cpp b/src/Conversation/Main/Controller/src/Conversation.cpp index ebf7bdf4..15e846aa 100644 --- a/src/Conversation/Main/Controller/src/Conversation.cpp +++ b/src/Conversation/Main/Controller/src/Conversation.cpp @@ -923,6 +923,26 @@ void Conversation::showMainPopup() { PopupList &popup = getApp().getPopupManager().getPopupList(PopupList::MoreMenuPopup); popup.appendItem(msg("IDS_MSG_OPT_DELETE"), POPUPLIST_ITEM_PRESSED_CB(Conversation, onDeleteItemPressed), this); + if(m_AddressList && m_AddressList->getLength() == 1) + { + const std::string adress = m_AddressList->at(0).getAddress(); + ContactAddressRef contactAddress = getApp().getContactManager().getContactAddress(adress); + + if(contactAddress) + { + popup.appendItem(*new PopupPersonIdListItem(popup, msg("IDS_MSG_OPT_VIEW_CONTACT_DETAILS_ABB"), contactAddress->getOwnerId(), + contactAddress->getOwnerType(), POPUPLIST_ITEM_PRESSED_CB(Conversation, onViewContactDetailsItemPressed), this)); + } + else + { + popup.appendItem(*new PopupAddressListItem(popup, msg("IDS_MSG_OPT_MAKE_VOICE_CALL"), adress, + POPUPLIST_ITEM_PRESSED_CB(Conversation, onMakeVoiceItemPressed), this)); + popup.appendItem(*new PopupAddressListItem(popup, msg("IDS_MSG_OPT_CREATE_CONTACT_ABB"), adress, + POPUPLIST_ITEM_PRESSED_CB(Conversation, onCreateContactItemPressed), this)); + popup.appendItem(*new PopupAddressListItem(popup, msg("IDS_MSG_OPT_UPDATE_CONTACT"), adress, + POPUPLIST_ITEM_PRESSED_CB(Conversation, onUpdateContactItemPressed), this)); + } + } if(!isHiddenAddress()) popup.appendItem(msg("IDS_MSG_TMBODY_ADD_OR_REMOVE_RECIPIENTS"), POPUPLIST_ITEM_PRESSED_CB(Conversation, onAddRecipientsItemPressed), this); popup.show();