equal
deleted
inserted
replaced
411 // Going to the background |
411 // Going to the background |
412 else |
412 else |
413 { |
413 { |
414 PRINT( _L( "Camera <> CCamPreCaptureViewBase::HandleForegroundEventL: to background" ) ); |
414 PRINT( _L( "Camera <> CCamPreCaptureViewBase::HandleForegroundEventL: to background" ) ); |
415 // Not behind an eikon/avkon server window |
415 // Not behind an eikon/avkon server window |
|
416 // or keylock on when camera needs to be released. |
416 TBool totalBackground = ETrue; |
417 TBool totalBackground = ETrue; |
417 if ( iController.IsAppUiAvailable() ) |
418 if ( iController.IsAppUiAvailable() && !iController.IsKeyLockOn() ) |
418 { |
419 { |
419 totalBackground = appUi->AppInBackground( EFalse ); |
420 totalBackground = appUi->AppInBackground( EFalse ); |
420 } |
421 } |
421 // Either in foreground (moving to another view of our's) |
422 // Either in foreground (moving to another view of our's) |
422 // or if in background, then not just behind a notifier dialog. |
423 // or if in background, then not just behind a notifier dialog. |
1270 |
1271 |
1271 |
1272 |
1272 // Hide the active palette |
1273 // Hide the active palette |
1273 static_cast<CCamAppUi*>( iEikonEnv->AppUi() ) |
1274 static_cast<CCamAppUi*>( iEikonEnv->AppUi() ) |
1274 ->SetActivePaletteVisibility( EFalse ); |
1275 ->SetActivePaletteVisibility( EFalse ); |
1275 |
1276 |
|
1277 // Hide the toolbar in standby mode |
|
1278 if ( iController.IsTouchScreenSupported() ) |
|
1279 { |
|
1280 CCamAppUi* appUi = static_cast<CCamAppUi*>( iEikonEnv->AppUi() ); |
|
1281 CAknToolbar* fixedToolbar = appUi->CurrentFixedToolbar(); |
|
1282 if ( fixedToolbar ) |
|
1283 { |
|
1284 fixedToolbar->SetToolbarVisibility( EFalse ); |
|
1285 } |
|
1286 } |
|
1287 |
1276 // stop viewfinding |
1288 // stop viewfinding |
1277 StopViewFinder(); |
1289 StopViewFinder(); |
1278 |
1290 |
1279 CCamViewBase::SwitchToStandbyModeL( aViewId, aError ); |
1291 CCamViewBase::SwitchToStandbyModeL( aViewId, aError ); |
1280 |
1292 |