else
{
//show display name, if available, Else show contact number
- String* pDisplayName = callInfo.FetchCallerNameN();
+ String* pDisplayName = null;
+ if(callInfo.GetContactNumber().IsEmpty() == false)
+ {
+ pDisplayName = callInfo.FetchLatestCallerNameN(callInfo.GetContactNumber());
+ }
+ else
+ {
+ pDisplayName = new (std::nothrow) String(L"");
+ }
if (pDisplayName->IsEmpty() == true)
{
//If contact number is also not present show unknown
if (firstCallInfo.IsConferenceCall() == false)
{
//show display name if available, else show contact number
- String* pDisplayName = firstCallInfo.FetchCallerNameN();
+ String* pDisplayName = null;
+ if(firstCallInfo.GetContactNumber().IsEmpty() == false)
+ {
+ pDisplayName = firstCallInfo.FetchLatestCallerNameN(firstCallInfo.GetContactNumber());
+ }
+ else
+ {
+ pDisplayName = new (std::nothrow) String(L"");
+ }
if (pDisplayName->IsEmpty() == true)
{
if(firstCallInfo.GetContactNumber().IsEmpty() == false)