idlehomescreen/xmluirendering/uiengine/src/xnnodeimpl.cpp
changeset 4 4d54b72983ae
parent 2 08c6ee43b396
child 5 c743ef5928ba
--- a/idlehomescreen/xmluirendering/uiengine/src/xnnodeimpl.cpp	Fri Jan 22 09:35:14 2010 +0200
+++ b/idlehomescreen/xmluirendering/uiengine/src/xnnodeimpl.cpp	Tue Jan 26 11:48:23 2010 +0200
@@ -3161,12 +3161,15 @@
 
     if ( attribute )
         {
+        
         const TDesC8& value( attribute->Value() );
         TLex8 lex( value );
         TInt effect;
         lex.Val( effect );
+        
         aEngine.AppUiAdapter().EffectManager()->BeginFullscreenEffectL(
                 effect, aEngine.ViewManager()->ActiveViewData() );
+        
         }
     }
 
@@ -4321,7 +4324,12 @@
         }
     else if ( nameString == XnPropertyNames::action::event::KRunFullScreenEffect )
         {
-        RunFullScreenEffectL( aEngine, aEventNode );
+        TInt viewCount( aEngine.ViewManager()->ViewAmount() );
+
+        if ( viewCount > KOneView )
+            {
+            RunFullScreenEffectL( aEngine, aEventNode );
+            }
         }
     else if ( nameString == XnPropertyNames::action::event::KActivateNextView )
         {