1.Call on lock screen support added 2.Missed calls SEEN and UNSEEN support added...
[apps/osp/Call.git] / src / CallOptionPopup.cpp
index ce619b6..05333a2 100644 (file)
@@ -80,6 +80,8 @@ CallOptionPopup::Initialize(void)
        int popupHeight = H_CANCEL_BUTTON + listHeight + CANCEL_BUTTON_PADDING + VERTICAL_PADDING;
        r = SetSize(Dimension(W_POPUP + HORIZONTAL_PADDING, popupHeight));
        TryReturn(r == E_SUCCESS, r, "CallOptionPopup::SetSize() failed");
+       SetMinimumSize(Dimension(W_POPUP + HORIZONTAL_PADDING, popupHeight));
+       TryReturn(r == E_SUCCESS, r, "CallOptionPopup::SetMinSize() failed");
 
        String strText;
        Application::GetInstance()->GetAppResource()->GetString(L"IDS_CANCEL", strText);
@@ -91,11 +93,13 @@ CallOptionPopup::Initialize(void)
        TryReturn(r == E_SUCCESS, r, "CallOptionPopup::AddControl() failed");
 
        ListView* pListView = new (std::nothrow) ListView();
-       pListView->Construct(Rectangle(0, 0, W_POPUP - HORIZONTAL_PADDING, listHeight), true, SCROLL_STYLE_FADE_OUT);
+       pListView->Construct(Rectangle(0, 0, W_POPUP, listHeight), true, SCROLL_STYLE_FADE_OUT);
        pListView->AddListViewItemEventListener(*this);
        pListView->SetItemProvider(*this);
        r = AddControl(*pListView);
 
+
+
        return r;
 }
 
@@ -139,8 +143,8 @@ CallOptionPopup::ConstructListData(void)
                                                //If contact number is also not present show unknown
                                                if(callInfo.GetContactNumber().IsEmpty() == false)
                                                {
-                                               pDisplayName->Append(callInfo.GetContactNumber());
-                                       }
+                                                       pDisplayName->Append(callInfo.GetContactNumber());
+                                               }
                                                else
                                                {
                                                        pDisplayName->Append(AppUtility::GetResourceString(IDS_NUMBER_UNKNOWN));
@@ -178,7 +182,7 @@ CallOptionPopup::ConstructListData(void)
                                {
                                        if(firstCallInfo.GetContactNumber().IsEmpty() == false)
                                        {
-                                       pDisplayName->Append(firstCallInfo.GetContactNumber());
+                                               pDisplayName->Append(firstCallInfo.GetContactNumber());
                                        }
                                        else
                                        {