mpxplugins/viewplugins/views/collectionviewhg/src/mpxcollectionviewhgimp.cpp
branchRCL_3
changeset 19 a12246c97fcc
parent 18 56b11cf8addb
child 21 cb96c29156b2
equal deleted inserted replaced
18:56b11cf8addb 19:a12246c97fcc
  6084     if ( aForeground && iOpeningNote )
  6084     if ( aForeground && iOpeningNote )
  6085     	{
  6085     	{
  6086         CloseWaitNoteL();
  6086         CloseWaitNoteL();
  6087         iOpeningNote = EFalse;
  6087         iOpeningNote = EFalse;
  6088     	}
  6088     	}
       
  6089 
       
  6090 /* This code is added to avoid CBA flicker which happens after pressing "Now playing" 
       
  6091    from artist&album view and pressing BACK from Playback view.
       
  6092    While going to playback view, reset CBA to "Back". */
       
  6093     if( !aForeground && iViewUtility->ActiveViewType().iUid == KMPXPluginTypePlaybackUid )
       
  6094         {
       
  6095         TRAP_IGNORE( CEikButtonGroupContainer* cba = Cba();
       
  6096         if ( cba )
       
  6097             {
       
  6098             cba->SetCommandSetL( R_AVKON_SOFTKEYS_OPTIONS_BACK );
       
  6099             cba->DrawDeferred();
       
  6100             } );
       
  6101         }
       
  6102 		
  6089 #ifdef BACKSTEPPING_INCLUDED
  6103 #ifdef BACKSTEPPING_INCLUDED
  6090     iActivateBackStepping = EFalse;
  6104     iActivateBackStepping = EFalse;
  6091     MPX_DEBUG3("CMPXCollectionViewHgImp::HandleForegroundEventL - is in foreground=%d, this view=0x%x",
  6105     MPX_DEBUG3("CMPXCollectionViewHgImp::HandleForegroundEventL - is in foreground=%d, this view=0x%x",
  6092         aForeground, Id().iUid );
  6106         aForeground, Id().iUid );
  6093     if( aForeground &&
  6107     if( aForeground &&
  7059             {
  7073             {
  7060             // if it's from browser/messaging, display save option if
  7074             // if it's from browser/messaging, display save option if
  7061             // it has not been saved
  7075             // it has not been saved
  7062             aMenuPane->SetItemDimmed( EMPXCmdSavePlaylist,
  7076             aMenuPane->SetItemDimmed( EMPXCmdSavePlaylist,
  7063                 ( !iCommonUiHelper->IsHostMessagingBrowserL() || !MPXTlsHelper::NeedSave() ) );
  7077                 ( !iCommonUiHelper->IsHostMessagingBrowserL() || !MPXTlsHelper::NeedSave() ) );
  7064             TBool isListEmpty( iContainer->TotalListItemCount() == 0 );
  7078             aMenuPane->SetItemDimmed( EMPXCmdFindInMusicShop, ETrue );
  7065             aMenuPane->SetItemDimmed( EMPXCmdFindInMusicShop, isListEmpty );
       
  7066 
       
  7067             break;
  7079             break;
  7068             }
  7080             }
  7069         case R_MPX_PLAYBACK_COLLECTION_MUSICSHOP_SUB_MENU:
  7081         case R_MPX_PLAYBACK_COLLECTION_MUSICSHOP_SUB_MENU:
  7070         	{
  7082         	{
  7071         	aMenuPane->SetItemTextL(EMPXCmdGoToOperatorMusicShop,  iOperatorMusicStoreName->Des() );
  7083         	aMenuPane->SetItemTextL(EMPXCmdGoToOperatorMusicShop,  iOperatorMusicStoreName->Des() );