uifw/AvKon/src/AknInfoPopupNote.cpp
branchRCL_3
changeset 19 aecbbf00d063
parent 10 3d340a0166ff
child 20 d48ab3b357f1
equal deleted inserted replaced
18:fcdfafb36fe7 19:aecbbf00d063
   447         TRAP_IGNORE( AknLayoutUtils::OverrideControlColorL( *iText, EColorLabelText,
   447         TRAP_IGNORE( AknLayoutUtils::OverrideControlColorL( *iText, EColorLabelText,
   448                 textColor ) );
   448                 textColor ) );
   449         }
   449         }
   450     else if( aType == KEikMessageFadeAllWindows )
   450     else if( aType == KEikMessageFadeAllWindows )
   451         {
   451         {
   452         // Infopopu will be canceled when be faded no matter visible or not.
   452         if ( IsVisible() && iHideWhenAppFaded )
   453         if ( iHideWhenAppFaded )
       
   454             {
   453             {
   455             iController.HideInfoPopupNote();
   454             iController.HideInfoPopupNote();
   456             }
   455             }
   457         }
   456         }
   458     }
   457     }
   470 
   469 
   471         if ( aPointerEvent.iType == TPointerEvent::EButton1Down
   470         if ( aPointerEvent.iType == TPointerEvent::EButton1Down
   472              || aPointerEvent.iType == TPointerEvent::EButton1Up
   471              || aPointerEvent.iType == TPointerEvent::EButton1Up
   473              || aPointerEvent.iType == TPointerEvent::EDrag )
   472              || aPointerEvent.iType == TPointerEvent::EDrag )
   474             {
   473             {
   475             Hide();
   474             if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
   476             if ( aPointerEvent.iType == TPointerEvent::EButton1Down && !IsVisible() )
       
   477                 {
   475                 {
   478                 MTouchFeedback* feedback = MTouchFeedback::Instance();
   476                 MTouchFeedback* feedback = MTouchFeedback::Instance();
   479                 if ( feedback )
   477                 if ( feedback )
   480                     {
   478                     {
   481                     feedback->InstantFeedback( ETouchFeedbackPopUp );
   479                     feedback->InstantFeedback( ETouchFeedbackPopUp );
   482                     }
   480                     }
   483                 }
   481                 }
   484 
   482 
       
   483             Hide();
   485             SetPointerCapture( EFalse ); 
   484             SetPointerCapture( EFalse ); 
   486             }
   485             }
   487         }
   486         }
   488     }
   487     }
   489 
   488