equal
deleted
inserted
replaced
245 CAknAppUi::HandleResourceChangeL( aType ); |
245 CAknAppUi::HandleResourceChangeL( aType ); |
246 } |
246 } |
247 |
247 |
248 |
248 |
249 // --------------------------------------------------------------------------- |
249 // --------------------------------------------------------------------------- |
250 // CWsfAppUi::HandleCommandL |
250 // CWsfAppUi::HandleForegroundEventL |
251 // --------------------------------------------------------------------------- |
251 // --------------------------------------------------------------------------- |
252 // |
252 // |
253 void CWsfAppUi::HandleForegroundEventL( TBool aForeground ) |
253 void CWsfAppUi::HandleForegroundEventL( TBool aForeground ) |
254 { |
254 { |
255 LOG_ENTERFN( "CWsfAppUi::HandleForegroundEventL" ); |
255 LOG_ENTERFN( "CWsfAppUi::HandleForegroundEventL" ); |
256 //Application switched to foreground. |
256 //Application switched to foreground. |
257 if ( aForeground ) |
257 if ( aForeground ) |
258 { |
258 { |
|
259 CWsfMainView* mainView = static_cast<CWsfMainView*>( |
|
260 View( TUid::Uid( EMainViewId ) ) ); |
|
261 if ( mainView ) |
|
262 { |
|
263 TRAPD( err, mainView->UpdateBrowserUsageInfoL() ); |
|
264 if ( err ) |
|
265 { |
|
266 LOG_WRITEF( "Browser iap usage update failed - err=%d", err ); |
|
267 } |
|
268 } |
|
269 |
259 if ( iObserver ) |
270 if ( iObserver ) |
260 { |
271 { |
261 iObserver->AppSwitchedForegroundL(); |
272 iObserver->AppSwitchedForegroundL(); |
262 } |
273 } |
263 } |
274 } |