Fix for 42507
authorAmith Kumar Mahale <amith.m@samsung.com>
Mon, 24 Jun 2013 14:44:48 +0000 (20:14 +0530)
committerAmith Kumar Mahale <amith.m@samsung.com>
Mon, 24 Jun 2013 14:44:48 +0000 (20:14 +0530)
Change-Id: Ia302ddc117d784422b696086959b16d873bf3786
Signed-off-by: Amith Kumar Mahale <amith.m@samsung.com>
src/CallOptionPopup.cpp

index 36accc1..b42ff9f 100644 (file)
@@ -234,6 +234,29 @@ CallOptionPopup::OnListViewItemStateChanged(ListView& listView, int index,
                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;
 }