vtuis/videotelui/src/CVtUiAppUi.cpp
changeset 1 4fbbce2c82ba
parent 0 ed9695c8bcbe
child 2 4a81900cd18b
--- a/vtuis/videotelui/src/CVtUiAppUi.cpp	Mon Nov 23 14:47:47 2009 +0200
+++ b/vtuis/videotelui/src/CVtUiAppUi.cpp	Thu Dec 17 08:46:53 2009 +0200
@@ -1886,6 +1886,18 @@
         TInt aCommand )
     {
     __VTPRINTENTER( "VtUi.ProcessCommandL" )
+    
+    // delay mute cmd received during layout change
+    if ( aCommand == EAknSoftkeyOptions )
+        {
+        if ( iLayoutChg )
+            {
+            iDelayedCmd = EAknSoftkeyOptions;
+            __VTPRINTEXIT( "VtUi.ProcessCommandL mute delayed due to LayoutChange" )
+            return;
+            }
+        }
+    
     MVtEngCommandHandler& command = Model().CommandHandler();
     command.ExecuteL( KVtEngRequestLastRemoteFrame, NULL );
     
@@ -2186,6 +2198,15 @@
             CleanupPushEnableBlindL();
             iUiStates->SetDisableBlindSetting( ETrue );
             CmdSwapImagesPlacesL();
+            
+                        
+            MVtEngMedia& media = Model().Media();
+            if ( VtUiUtility::GetFreezeState( media ) )
+                {
+                TBool isViewFinderInContextPane = IsViewFinderInContextPane();
+                iUiStates->SetViewFindersInitialPlaceContextPane( isViewFinderInContextPane );
+                }
+                
             CleanupStack::PopAndDestroy(); // CleanupPushEnableBlindL
             break;
 
@@ -4891,7 +4912,14 @@
     if ( iDelayedCmd != 0 )
         {
         __VTPRINT2( DEBUG_GEN, "VtUi.DoLayoutChg reexecute the delayed cmd=%d", iDelayedCmd);
-        HandleCommandL( iDelayedCmd );
+        if( iDelayedCmd == EAknSoftkeyOptions )
+            {
+            ProcessCommandL( iDelayedCmd );
+            }
+        else
+            {
+            HandleCommandL( iDelayedCmd );
+            }
         iDelayedCmd = 0;
         }
     __VTPRINTEXIT( "VtUi.DoLayoutChg" )