}
else if(m_Mode == ConversationMode)
{
- popup.appendItem(*new PopupAddressListItem(popup, msg("IDS_MSG_OPT_MAKE_VOICE_CALL"), address,
- POPUPLIST_ITEM_PRESSED_CB(Conversation, onMakeVoiceItemPressed), this));
+ if(MsgUtils::isValidNumber(address))
+ {
+ popup.appendItem(*new PopupAddressListItem(popup, msg("IDS_MSG_OPT_MAKE_VOICE_CALL"), address,
+ POPUPLIST_ITEM_PRESSED_CB(Conversation, onMakeVoiceItemPressed), this));
+ }
}
popup.appendItem(*new PopupAddressListItem(popup, msg("IDS_MSG_OPT_CREATE_CONTACT_ABB"), address,
std::string text = msgArgs("IDS_MSG_POP_THE_SECURITY_POLICY_PREVENTS_SENDING_MESSAGES_TO_THE_FOLLOWING_RECIPIENTS_C_NPS", addresses.c_str());
auto &popupMngr = getApp().getPopupManager();
Popup &popup = popupMngr.getPopup();
+ popup.setAutoDismissBlockClickedFlag(true);
popup.addButton(msgt("IDS_MSG_BUTTON_OK_ABB"), Popup::OkButtonId);
popup.setContent(text);
popup.show();
std::string createMessageText() const;
void createSmilPlayer();
void recipientClickHandler(const std::string &address);
- void showRecipPopup(const std::string &title);
+ void showRecipPopup(const std::string &address);
void updatePlayPos();
void updateSubject();
void updateButtonState();
pop();
}
-void Viewer::showRecipPopup(const std::string &title)
+void Viewer::showRecipPopup(const std::string &address)
{
PopupList &popup = getApp().getPopupManager().getPopupList();
- popup.setTitle(title);
+ popup.setTitle(address);
popup.setAutoDismissBlockClickedFlag(true);
- popup.appendItem(msg("IDS_MSG_OPT_MAKE_VOICE_CALL"), POPUPLIST_ITEM_PRESSED_CB(Viewer, onMakeVoiceItemPressed), this);
+ if(MsgUtils::isValidNumber(address))
+ popup.appendItem(msg("IDS_MSG_OPT_MAKE_VOICE_CALL"), POPUPLIST_ITEM_PRESSED_CB(Viewer, onMakeVoiceItemPressed), this);
popup.appendItem(msg("IDS_MSG_OPT_CREATE_CONTACT_ABB"), POPUPLIST_ITEM_PRESSED_CB(Viewer, onCreateContactItemPressed), this);
popup.appendItem(msg("IDS_MSG_OPT_UPDATE_CONTACT"), POPUPLIST_ITEM_PRESSED_CB(Viewer, onUpdateContactItemPressed), this);
popup.show();