equal
deleted
inserted
replaced
172 |
172 |
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 UpdateToolbar(); |
|
178 |
|
179 CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage); |
177 CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage); |
180 |
178 |
181 if (iFirstActivateAfterLaunch) |
179 if (aPrevViewId.iViewUid == KUidPodcastShowsViewID) |
182 { |
180 { |
183 iFirstActivateAfterLaunch = EFalse; |
181 // back key from shows view |
|
182 iViewingShows = EFalse; |
|
183 } |
|
184 |
|
185 if (iViewingShows) |
|
186 { |
|
187 // go to shows view |
|
188 AppUi()->ActivateLocalViewL(KUidPodcastShowsViewID, TUid::Uid(0), KNullDesC8()); |
|
189 } |
|
190 else |
|
191 { |
|
192 UpdateToolbar(); |
|
193 |
|
194 if (iFirstActivateAfterLaunch) |
|
195 { |
|
196 iFirstActivateAfterLaunch = EFalse; |
|
197 } |
184 } |
198 } |
185 } |
199 } |
186 |
200 |
187 void CPodcastFeedView::DoDeactivate() |
201 void CPodcastFeedView::DoDeactivate() |
188 { |
202 { |
210 |
224 |
211 if(index >= 0 && index < sortedItems->Count()) |
225 if(index >= 0 && index < sortedItems->Count()) |
212 { |
226 { |
213 iPodcastModel.ActiveShowList().Reset(); |
227 iPodcastModel.ActiveShowList().Reset(); |
214 iPodcastModel.SetActiveFeedInfo((*sortedItems)[index]); |
228 iPodcastModel.SetActiveFeedInfo((*sortedItems)[index]); |
215 |
229 iViewingShows = ETrue; |
216 AppUi()->ActivateLocalViewL(KUidPodcastShowsViewID, TUid::Uid(0), KNullDesC8()); |
230 AppUi()->ActivateLocalViewL(KUidPodcastShowsViewID, TUid::Uid(0), KNullDesC8()); |
217 } |
231 } |
218 } |
232 } |
219 break; |
233 break; |
220 default: |
234 default: |