uifw/EikStd/coctlsrc/EIKCTGRP.CPP
branchRCL_3
changeset 64 85902f042028
parent 0 2f259fa3e83a
child 72 a5e7a4f63858
--- a/uifw/EikStd/coctlsrc/EIKCTGRP.CPP	Tue Sep 14 21:48:24 2010 +0300
+++ b/uifw/EikStd/coctlsrc/EIKCTGRP.CPP	Wed Sep 15 12:29:17 2010 +0300
@@ -348,23 +348,11 @@
 	{
     TInt count = iControlArray->Count();
 
-	// This prevents MSK from drawing in landscape layouts.
-	// Also MSK doesn't even need to be activated in landscape modes.
-    if ( count == 4 )
-        {   
-        // Exception is made for idle flat status pane layouts,
-        // in which the MSK is used also in landscape.
-        TBool mskSupportedLscLayoutActive(
-            AVKONENV->StatusPaneResIdForCurrentLayout(
-                AknStatuspaneUtils::CurrentStatusPaneLayoutResId() ) ==
-                    R_AVKON_WIDESCREEN_PANE_LAYOUT_IDLE_FLAT_NO_SOFTKEYS );
-
-        if ( iLayout & EDisableMSKDrawing ||
-             ( Layout_Meta_Data::IsLandscapeOrientation() && 
-               !mskSupportedLscLayoutActive ) )
-            {
-            count--;
-            }
+    // count == 4 means MSK is on, but when it is disabled by EDisableMSKDrawing,
+    // we should decrease the count to avoid drawing it.
+    if ( count == 4 && ( iLayout & EDisableMSKDrawing ) )
+        {
+        count--;
         }
 
 	return count;