TryReturn(r == E_SUCCESS, r, "CallOptionPopup::AddControl() failed");
ListView* pListView = new (std::nothrow) ListView();
- pListView->Construct(Rectangle(0, 0, W_POPUP, listHeight), true, SCROLL_STYLE_FADE_OUT);
+ pListView->Construct(Rectangle(0, 0, W_POPUP + HORIZONTAL_PADDING, listHeight), true, SCROLL_STYLE_FADE_OUT);
pListView->AddListViewItemEventListener(*this);
pListView->SetItemProvider(*this);
r = AddControl(pListView);
int elementId, ListItemStatus status)
{
Popup::SetShowState(false);
+ if(elementId == -1)
+ {
+ elementId = ANSERWING_OPTION_HOLD_SINGLE_CALL;
+ if (__pOptionsList->GetCount() == 2)
+ {
+ if(index == 1)
+ {
+ elementId = ANSERWING_OPTION_END_SINGLE_CALL;
+ }
+ }
+ else
+ {
+ elementId = ANSERWING_OPTION_REPLACE_ACTIVE_CALL;
+ if(index == 1)
+ {
+ elementId = ANSERWING_OPTION_REPLACE_HELD_CALL;
+ }
+ else if(index == 2)
+ {
+ elementId = ANSERWING_OPTION_END_ALL_CALLS;
+ }
+ }
+ }
__popupListener.OnItemSelected(elementId);
return;
}