mmsharing/mmshui/src/musuisendview.cpp
changeset 2 b31261fd4e04
parent 0 f0cf47e981f9
child 6 c47a75a8cd72
--- a/mmsharing/mmshui/src/musuisendview.cpp	Thu Jan 07 12:45:29 2010 +0200
+++ b/mmsharing/mmshui/src/musuisendview.cpp	Tue Feb 02 00:09:07 2010 +0200
@@ -61,12 +61,16 @@
     {
     MUS_LOG_TDESC( "mus: [MUSUI ]    -> CMusUiSendView::ManualAddressEntryL: ",
                             aAddress );
-
-    TBuf<KMusSipAddressMaxLength> address( aAddress );
+     
+    CAknAppUiBase::TAppUiOrientation aOrientation ;
+    
+     TBuf<KMusSipAddressMaxLength> address( aAddress );
     if ( SendController() && MusUiDialogUtil::ShowTextQueryDialogL( 
                                     R_MUS_TEXT_ENTER_ADDRESS_DIALOG_PROMPT, 
                                     address ) )
         {
+        //to get the AppOrientation before sending invatation
+        aOrientation = MusAppUi()->AppOrientation();       
         SendController()->InviteL( address );
         }
     else
@@ -76,7 +80,10 @@
         MusAppUi()->HandleExit();
         }
 
-    SendController()->ChangeOrientationL( iSavedOrientation );
+    if( aOrientation != iSavedOrientation)
+    	{
+         SendController()->ChangeOrientationL( iSavedOrientation );
+    	}
     MUS_LOG( "mus: [MUSUI ]  <- CMusUiSendView::ManualAddressEntryL" );
     }