phonebookui/Phonebook2/GroupExtension/src/CPguSendMessageGroupCmd.cpp
branchRCL_3
changeset 35 4ae315f230bc
parent 23 5586b4d2ec3e
child 58 d4f567ce2e7c
--- a/phonebookui/Phonebook2/GroupExtension/src/CPguSendMessageGroupCmd.cpp	Tue May 11 16:00:21 2010 +0300
+++ b/phonebookui/Phonebook2/GroupExtension/src/CPguSendMessageGroupCmd.cpp	Tue May 25 12:26:45 2010 +0300
@@ -54,7 +54,8 @@
 #include <akntitle.h>
 #include <eikspane.h>
 #include <avkon.hrh>
-
+#include <avkon.rsg>
+#include <layoutmetadata.cdl.h>
 // Debugging headers
 #include <Pbk2Debug.h>
 
@@ -379,8 +380,20 @@
     Phonebook2::Pbk2AppUi()->ApplicationServices().SendUiL()->
         CreateAndSendMessageL( iMtmUid, iMessageData );
 
-    // Sets title pane for tile which was save
-    titlePane->SetText( title );
+    if( !Layout_Meta_Data::IsLandscapeOrientation() )
+        {
+        sp->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL );
+        sp->MakeVisible( ETrue );
+        
+        // Sets title pane for tile which was save
+        titlePane->SetText( title );
+        sp->DrawNow();
+        }
+    else
+        {
+        // Sets title pane for tile which was save
+        titlePane->SetText( title );
+        }
     CleanupStack::Pop();
 
     iState = EStopping;