summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Olshevskyi <i.olshevskyi@samsung.com>2017-10-12 18:15:02 +0300
committerIgor Olshevskyi <i.olshevskyi@samsung.com>2017-10-12 18:15:02 +0300
commite18f6d8fd76862adce00fc34ba3808c696fcf79f (patch)
treebe096ada268e2d1539170470d1b7797a0c312705
parent60a7fdf869252865de5cb3bfbb331300c3298c09 (diff)
downloadcall-ui-e18f6d8fd76862adce00fc34ba3808c696fcf79f.tar.gz
call-ui-e18f6d8fd76862adce00fc34ba3808c696fcf79f.tar.bz2
call-ui-e18f6d8fd76862adce00fc34ba3808c696fcf79f.zip
TizenRefApp-9601 Add to contacts button displayed when ending call with Unknown contact
Change-Id: Ic5f0b3e6bb2c43da83f6aae802787efd88b3ee08
-rw-r--r--call-ui/presenters/misc/AccessoryPresenter.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/call-ui/presenters/misc/AccessoryPresenter.cpp b/call-ui/presenters/misc/AccessoryPresenter.cpp
index 16d7486..293f510 100644
--- a/call-ui/presenters/misc/AccessoryPresenter.cpp
+++ b/call-ui/presenters/misc/AccessoryPresenter.cpp
@@ -275,9 +275,11 @@ namespace callui {
if (!callInfo) {
FAIL_RETURN(RES_FAIL, "callInfo is NULL");
}
- if (!(callInfo->isEmergency())
- && !(callInfo->getConferenceMemberCount() > 1)
- && !(callInfo->getContactInfo())) {
+ if (!(callInfo->isEmergency() ||
+ callInfo->isVoiceMailNumber() ||
+ isUnknownCaller(*callInfo)) &&
+ !(callInfo->getConferenceMemberCount() > 1) &&
+ !(callInfo->getContactInfo())) {
FAIL_RETURN(createAddContactBtn(), "createAddContactBtn() failed");
m_widget->setContent(*m_addContactBtn, impl::PART_SWL_SLOT2);
m_unsavedPhoneNumber = callInfo->getPhoneNumber();