uifw/AvKon/src/AknInfoPopupNote.cpp
branchRCL_3
changeset 20 d48ab3b357f1
parent 19 aecbbf00d063
--- a/uifw/AvKon/src/AknInfoPopupNote.cpp	Tue Aug 31 15:28:30 2010 +0300
+++ b/uifw/AvKon/src/AknInfoPopupNote.cpp	Wed Sep 01 12:16:19 2010 +0100
@@ -449,7 +449,8 @@
         }
     else if( aType == KEikMessageFadeAllWindows )
         {
-        if ( IsVisible() && iHideWhenAppFaded )
+        // Infopopu will be canceled when be faded no matter visible or not.
+        if ( iHideWhenAppFaded )
             {
             iController.HideInfoPopupNote();
             }
@@ -471,7 +472,8 @@
              || aPointerEvent.iType == TPointerEvent::EButton1Up
              || aPointerEvent.iType == TPointerEvent::EDrag )
             {
-            if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
+            Hide();
+            if ( aPointerEvent.iType == TPointerEvent::EButton1Down && !IsVisible() )
                 {
                 MTouchFeedback* feedback = MTouchFeedback::Instance();
                 if ( feedback )
@@ -480,7 +482,6 @@
                     }
                 }
 
-            Hide();
             SetPointerCapture( EFalse ); 
             }
         }