uifw/AvKon/src/AknCheckBoxSettingPage.cpp
branchRCL_3
changeset 56 d48ab3b357f1
parent 55 aecbbf00d063
--- a/uifw/AvKon/src/AknCheckBoxSettingPage.cpp	Tue Aug 31 15:28:30 2010 +0300
+++ b/uifw/AvKon/src/AknCheckBoxSettingPage.cpp	Wed Sep 01 12:16:19 2010 +0100
@@ -146,15 +146,21 @@
 
     CreateCheckBoxBitmapsL();
 
+    // Only a reference to the CBase object; not owned
+    CAknSetStyleListBox* listBox = ListBoxControl();
+
+	//
+	// SelectItemL make the view item drawn by default, SetDisableRedraw can remove flick
+	//
+	TBool bRedrawDisabled = listBox->View()->RedrawDisabled();
+	listBox->View()->SetDisableRedraw( ETrue );
     GenerateInternalArrayAndGiveToListBoxL();
+	listBox->View()->SetDisableRedraw( bRedrawDisabled );
 
     // This updates the CBA
     CheckAndSetDataValidity();
     UpdateCbaL();
 
-    // Only a reference to the CBase object; not owned
-    CAknSetStyleListBox* listBox = ListBoxControl();
-
     listBox->SetListBoxObserver(this);
 
     // Set the scroller indication to appear when needed
@@ -204,7 +210,7 @@
         if (newResourceId)
             {
             bgc->SetCommandL(3,newResourceId);
-            cba->DrawNow();
+            cba->DrawDeferred();
             }
         }
 
@@ -362,6 +368,13 @@
     switch (aCommandId)
         {
         case EAknSoftkeySelect:
+            {
+            if ( EnableSingleClickHighlight( aCommandId ) )
+                {
+                break;                           
+                } 
+            // no single click mode was enabled, fall through
+            }           
         case EAknSoftkeyMark:
         case EAknSoftkeyUnmark:
             if ( AknLayoutUtils::PenEnabled() )