idlehomescreen/xmluirendering/uiengine/src/xneffectmanager.cpp
branchRCL_3
changeset 65 bffb1247ad6e
parent 54 1b758917cafc
parent 52 a1e3af341cc7
child 84 20d75ec6647e
--- a/idlehomescreen/xmluirendering/uiengine/src/xneffectmanager.cpp	Mon Jun 21 15:27:11 2010 +0300
+++ b/idlehomescreen/xmluirendering/uiengine/src/xneffectmanager.cpp	Mon Jul 12 13:29:13 2010 +0100
@@ -73,8 +73,10 @@
     CTimer::ConstructL();
     
     OrientationChanged();
-    
+
+#ifndef NO_ALF_OBSERVER    
     iObserver = CAlfEffectObserver::NewL();
+#endif
     }
 
 // -----------------------------------------------------------------------------
@@ -277,8 +279,13 @@
 //
 TBool CXnEffectManager::WaitActiveEffect( TInt aInterval )     
     {
+    if (iObserver == NULL)
+        {
+        return ETrue;
+        }
+
     TBool retval( EFalse );
-    
+    	
     TInt loop( aInterval / KWaitInterval );
     
     while ( loop >= 0 )