uiacceltk/hitchcock/backgroundanim/src/bganimhost.cpp
changeset 19 f5bac0badc7e
parent 14 83d2d132aa58
child 21 6ce30188c5bf
--- a/uiacceltk/hitchcock/backgroundanim/src/bganimhost.cpp	Fri Apr 16 15:56:24 2010 +0300
+++ b/uiacceltk/hitchcock/backgroundanim/src/bganimhost.cpp	Mon May 03 13:22:43 2010 +0300
@@ -21,7 +21,7 @@
 #include <AknsItemDef.h>
 
 #include "bganimhost.h"
-
+#include <platform/ssm/startupdomainpskeys.h>
 
 typedef void* (*plugingetinterfacefunc)(int);
 
@@ -31,7 +31,7 @@
 static const TUint KMaxGPUMemUsage = 1024*1024*4;
 
 
-CBgAnimHost::CBgAnimHost() 
+CBgAnimHost::CBgAnimHost():iIsUIReady(EFalse) 
     {
     }
     
@@ -516,6 +516,19 @@
         {
         return;
         }
+    if (!iIsUIReady)
+        {
+        TInt lValOfNoUse;
+        TInt  err = RProperty::Get( KPSUidStartup,
+                                     KPSStartupUiPhase,
+                                     lValOfNoUse);
+        if (err == KErrNotFound)
+            {
+            iTimer->CallBack(500);
+            return;
+            }
+        }
+    iIsUIReady = ETrue;
     TTime start;
     start.UniversalTime();
     iPlugin->produceframe();