565 CAknToolbar* toolbar = Toolbar(); |
565 CAknToolbar* toolbar = Toolbar(); |
566 |
566 |
567 if (toolbar) { |
567 if (toolbar) { |
568 RShowInfoArray &fItems = iPodcastModel.ActiveShowList(); |
568 RShowInfoArray &fItems = iPodcastModel.ActiveShowList(); |
569 TInt itemCnt = fItems.Count(); |
569 TInt itemCnt = fItems.Count(); |
570 toolbar->SetToolbarVisibility(aVisible); |
570 if (iListContainer->IsVisible()) { |
571 |
571 toolbar->SetToolbarVisibility(aVisible); |
|
572 } |
572 toolbar->HideItem(EPodcastRemoveDownload, EFalse, ETrue); |
573 toolbar->HideItem(EPodcastRemoveDownload, EFalse, ETrue); |
573 toolbar->HideItem(EPodcastRemoveAllDownloads, EFalse, ETrue); |
574 toolbar->HideItem(EPodcastRemoveAllDownloads, EFalse, ETrue); |
574 toolbar->SetItemDimmed(EPodcastRemoveDownload, itemCnt == 0, ETrue); |
575 toolbar->SetItemDimmed(EPodcastRemoveDownload, itemCnt == 0, ETrue); |
575 toolbar->SetItemDimmed(EPodcastRemoveAllDownloads, itemCnt == 0, ETrue); |
576 toolbar->SetItemDimmed(EPodcastRemoveAllDownloads, itemCnt == 0, ETrue); |
576 toolbar->HideItem(EPodcastSuspendDownloads,iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |
577 toolbar->HideItem(EPodcastSuspendDownloads,iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |