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