camerauis/cameraapp/generic/src/CamPreCaptureViewBase.cpp
branchRCL_3
changeset 7 dbec5787fa68
parent 0 1ddebce53859
child 9 792dfc98fb3b
--- a/camerauis/cameraapp/generic/src/CamPreCaptureViewBase.cpp	Tue Feb 02 00:01:39 2010 +0200
+++ b/camerauis/cameraapp/generic/src/CamPreCaptureViewBase.cpp	Fri Feb 19 22:36:31 2010 +0200
@@ -413,8 +413,9 @@
       {
       PRINT( _L( "Camera <> CCamPreCaptureViewBase::HandleForegroundEventL: to background" ) );    
       // Not behind an eikon/avkon server window
+	  // or keylock on when camera needs to be released.
       TBool totalBackground = ETrue;
-      if ( iController.IsAppUiAvailable() )
+      if ( iController.IsAppUiAvailable() && !iController.IsKeyLockOn() )
           {
           totalBackground    = appUi->AppInBackground( EFalse );
           }
@@ -1272,7 +1273,18 @@
     // Hide the active palette
     static_cast<CCamAppUi*>( iEikonEnv->AppUi() )
         ->SetActivePaletteVisibility( EFalse );
-
+    
+    // Hide the toolbar in standby mode
+    if ( iController.IsTouchScreenSupported() )
+        {
+        CCamAppUi* appUi = static_cast<CCamAppUi*>( iEikonEnv->AppUi() );
+        CAknToolbar* fixedToolbar = appUi->CurrentFixedToolbar();
+        if ( fixedToolbar )
+            {
+            fixedToolbar->SetToolbarVisibility( EFalse );
+            }
+        }
+  
     // stop viewfinding
     StopViewFinder();