videocollection/hgmyvideos/src/vcxhgmyvideoscategorymodelhandler.cpp
branchRCL_3
changeset 11 5294c000a26d
parent 10 ce5ada96ab30
child 13 112a725ff2c2
--- a/videocollection/hgmyvideos/src/vcxhgmyvideoscategorymodelhandler.cpp	Fri Mar 12 15:43:00 2010 +0200
+++ b/videocollection/hgmyvideos/src/vcxhgmyvideoscategorymodelhandler.cpp	Mon Mar 15 12:40:47 2010 +0200
@@ -36,6 +36,8 @@
 #include <AknsUtils.h>
 #include <AknUtils.h>
 #include <aknlayoutscalable_avkon.cdl.h>
+#include <coemain.h>
+#include <aknappui.h>
 
 #include <vcxhgmyvideosicons.mbg>
 #include <myvideosindicator.h>
@@ -873,6 +875,15 @@
     IPTVLOGSTRING_LOW_LEVEL( "MPX My Videos UI # CategoryListFetchingCompletedL()" ); 
     FetchLastWatchedL();
     SetLastWatchedIndicatorL();
+
+    // Send custom command to appui that signals that the 
+    // my videos main view is constructed.
+    CAknAppUi* appui = static_cast<CAknAppUi*>( CCoeEnv::Static()->AppUi() );
+    
+    if ( appui )
+        {
+        appui->HandleCommandL( KVcxMyVideosCmdDoLateConstruct );
+        }
     }
 
 // -----------------------------------------------------------------------------