diff -r d05a55b217df -r 79311d856354 taskswitcher/taskswitcherui/taskswitcherapp/src/tsappview.cpp --- a/taskswitcher/taskswitcherui/taskswitcherapp/src/tsappview.cpp Wed Apr 14 15:47:59 2010 +0300 +++ b/taskswitcher/taskswitcherui/taskswitcherapp/src/tsappview.cpp Tue Apr 27 16:26:12 2010 +0300 @@ -249,7 +249,7 @@ CleanupStack::PopAndDestroy( &rects ); - UpdateHeadingsL(); + UpdateHeadingsL(0); } // ----------------------------------------------------------------------------- @@ -629,28 +629,22 @@ // CTsAppView::DataChanged // ----------------------------------------------------------------------------- // -void CTsAppView::DataChanged( CCoeControl* /*aWhere*/, TInt /*aNewCount*/ ) +void CTsAppView::DataChanged( CCoeControl* /*aWhere*/, TInt aNewCount ) { - TRAP_IGNORE( UpdateHeadingsL() ); + TRAP_IGNORE( UpdateHeadingsL( aNewCount ) ); } // ----------------------------------------------------------------------------- // CTsAppView::UpdateHeadingsL // ----------------------------------------------------------------------------- // -void CTsAppView::UpdateHeadingsL() +void CTsAppView::UpdateHeadingsL( TInt aNewCount ) { -#ifndef TASKSWITCHER_USE_CUSTOM_LAYOUT HBufC* text = StringLoader::LoadLC( - R_TASK_SWITCHER_HEADING_APPLICATIONS ); -#else - _LIT( KTitle, "Task switcher" ); - HBufC* text = KTitle().AllocLC(); -#endif + R_TASK_SWITCHER_HEADING_APPLICATIONS, aNewCount ); iAppsHeading->SetTextL( *text ); iAppsHeading->DrawDeferred(); CleanupStack::PopAndDestroy( text ); - }