emailuis/emailui/src/FreestyleEmailUiViewBase.cpp
changeset 2 5253a20d2a1e
parent 1 12c456ceeff2
child 3 a4d6f1ea0416
--- a/emailuis/emailui/src/FreestyleEmailUiViewBase.cpp	Thu Jan 07 12:38:38 2010 +0200
+++ b/emailuis/emailui/src/FreestyleEmailUiViewBase.cpp	Mon Jan 18 20:08:26 2010 +0200
@@ -445,8 +445,15 @@
         // Activate control group in case the view was activated when
         // application was being sent to background, and the control group
         // was left inactive.
-        const TInt KActivationDelay = 200; // ms
-        ActivateControlGroup( KActivationDelay );
+        if( iWasActiveControlGroup )
+            {
+            const TInt KActivationDelay = 200; // ms
+            ActivateControlGroup( KActivationDelay );
+            }
+        }
+    else
+        {
+        iWasActiveControlGroup = ControlGroup().AcceptInput();
         }
     }