Fix for Call sate not set properly when there is 1 waiting and 1 active call and...
[apps/osp/Call.git] / src / CallErrorMsgPopup.cpp
index 2f67392..9746c73 100644 (file)
@@ -91,7 +91,14 @@ ErrorMsgPopup::ConstructPopup(int errorCode)
        SetSize(popUpDimen);
 
        SetControlAlwaysOnTop(*pMsgTxtBox,true);
-       RelativeLayout* relPopUpLayout = static_cast<RelativeLayout*>(GetLayoutN());
+       RelativeLayout* relPopUpLayout = static_cast<RelativeLayout*>(GetLandscapeLayoutN());
+       if(relPopUpLayout != null)
+       {
+               // Set Relations between msgtextbox and Popup
+               relPopUpLayout->SetCenterAligned(*pMsgTxtBox, CENTER_ALIGN_HORIZONTAL);
+               relPopUpLayout->SetCenterAligned(*pMsgTxtBox, CENTER_ALIGN_VERTICAL);
+       }
+       relPopUpLayout = static_cast<RelativeLayout*>(GetPortraitLayoutN());
        if(relPopUpLayout != null)
        {
                // Set Relations between msgtextbox and Popup