application/src/PodcastSearchView.cpp
branchRCL_3
changeset 312 2faae209e72b
parent 309 d9f6395a50ea
child 313 0f30a75610de
--- a/application/src/PodcastSearchView.cpp	Sat Oct 30 14:06:37 2010 +0100
+++ b/application/src/PodcastSearchView.cpp	Sat Oct 30 14:28:25 2010 +0100
@@ -227,14 +227,12 @@
 					TBool added = iPodcastModel.FeedEngine().AddFeedL(*newInfo);
 					
 					if (added)
-						{					
-						// ask if user wants to update it now
-						TBuf<KMaxMessageLength> message;
-						iEikonEnv->ReadResourceL(message, R_ADD_FEED_SUCCESS);
-						if(ShowQueryMessageL(message))
-							{
-							iPodcastModel.FeedEngine().UpdateFeedL(newInfo->Uid());
-							}
+						{
+						// this is a bit of a hack, first we activate the feeds view normally
+						AppUi()->ActivateLocalViewL(KUidPodcastFeedViewID,  TUid::Uid(0), KNullDesC8);
+						// and then we send the UID of the recently added feed back to feed view for updating
+						// this is needed so the update? query comes on top of feed view, not search view
+						AppUi()->ActivateLocalViewL(KUidPodcastFeedViewID,  TUid::Uid(newInfo->Uid()), KNullDesC8);
 						}
 					else
 						{