mmappcomponents/audiofetcher/src/audiofetcherdialog.cpp
branchRCL_3
changeset 9 bee149131e4b
parent 1 7f2202662322
child 14 05b0d2323768
equal deleted inserted replaced
4:d45095c2f4f3 9:bee149131e4b
   466     
   466     
   467     if ( !iListBox )
   467     if ( !iListBox )
   468         {
   468         {
   469         return;
   469         return;
   470         }
   470         }
   471     
   471 
   472     TInt resultCount = iFileHandler->ResultCount();
       
   473     
       
   474     if(resultCount > 0){
       
   475         CEikButtonGroupContainer& dialogCba = ButtonGroupContainer(); 
       
   476         dialogCba.MakeCommandVisible(EAknSoftkeySelect, ETrue);
       
   477     }
       
   478     iListBox->HandleItemAdditionL();
   472     iListBox->HandleItemAdditionL();
   479     iListBox->SetCurrentItemIndex( 0 );    
   473     iListBox->SetCurrentItemIndex( 0 );    
   480     DrawNow();    
   474     DrawNow();    
   481     
   475     
   482     WLOG("CAudioFetcherDialog::UpdateListBoxL <");
   476     WLOG("CAudioFetcherDialog::UpdateListBoxL <");
   561     {
   555     {
   562     WLOG("CAudioFetcherDialog::HandleListBoxEventL");
   556     WLOG("CAudioFetcherDialog::HandleListBoxEventL");
   563     
   557     
   564     switch ( aEventType )
   558     switch ( aEventType )
   565         {
   559         {
   566         case EEventItemDoubleClicked: // fallthrough
   560         case EEventItemSingleClicked:   // fallthrough
   567         case EEventEnterKeyPressed:
   561         case EEventEnterKeyPressed:
   568             {
   562             {
   569             TBool closeDialog = HandleListSelectionL();
   563             TBool closeDialog = HandleListSelectionL();
   570             if ( closeDialog )
   564             if ( closeDialog )
   571                 {
   565                 {