173 void CPodcastFeedView::DoActivateL(const TVwsViewId& aPrevViewId, |
173 void CPodcastFeedView::DoActivateL(const TVwsViewId& aPrevViewId, |
174 TUid aCustomMessageId, |
174 TUid aCustomMessageId, |
175 const TDesC8& aCustomMessage) |
175 const TDesC8& aCustomMessage) |
176 { |
176 { |
177 CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage); |
177 CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage); |
178 |
178 if (iFirstActivateAfterLaunch) |
|
179 { |
|
180 iFirstActivateAfterLaunch = EFalse; |
|
181 } |
|
182 |
179 if (aPrevViewId.iViewUid == KUidPodcastShowsViewID) |
183 if (aPrevViewId.iViewUid == KUidPodcastShowsViewID) |
180 { |
184 { |
181 // back key from shows view |
185 // back key from shows view |
182 iViewingShows = EFalse; |
186 iViewingShows = EFalse; |
183 } |
187 } |
184 |
188 |
185 if (iViewingShows) |
189 UpdateListboxItemsL(); |
186 { |
190 UpdateToolbar(); |
187 // go to shows view |
|
188 AppUi()->ActivateLocalViewL(KUidPodcastShowsViewID, TUid::Uid(0), KNullDesC8()); |
|
189 } |
|
190 else |
|
191 { |
|
192 UpdateListboxItemsL(); |
|
193 UpdateToolbar(); |
|
194 |
|
195 if (iFirstActivateAfterLaunch) |
|
196 { |
|
197 iFirstActivateAfterLaunch = EFalse; |
|
198 } |
|
199 } |
|
200 } |
191 } |
201 |
192 |
202 void CPodcastFeedView::DoDeactivate() |
193 void CPodcastFeedView::DoDeactivate() |
203 { |
194 { |
204 iUpdater->StopUpdate(); |
195 iUpdater->StopUpdate(); |