fmradio/fmradio/src/fmradioalfvisualizer.cpp
branchRCL_3
changeset 6 3cb097cb90f8
parent 0 f3d95d9c00ab
child 8 f73067c3e563
--- a/fmradio/fmradio/src/fmradioalfvisualizer.cpp	Fri Mar 12 15:42:47 2010 +0200
+++ b/fmradio/fmradio/src/fmradioalfvisualizer.cpp	Mon Mar 15 12:40:34 2010 +0200
@@ -537,8 +537,9 @@
     FTRACE( FPrint( _L("CFMRadioAlfVisualizer::HandleGestureL(eventCode=%d)"), eventCode ) );
     
     CFMRadioAppUi* appUi = static_cast<CFMRadioAppUi*>( CCoeEnv::Static()->AppUi() );
-    // handle gestures only if there is no call ongoing
-    if ( !appUi->RadioEngine()->IsInCall() )
+    // handle gestures only if there is no call or tuning ongoing
+    if ( !appUi->RadioEngine()->IsInCall() &&
+            appUi->RadioState() != CFMRadioAppUi::EFMRadioStateBusySeek )
         {
         switch ( eventCode )
             {
@@ -682,7 +683,7 @@
         }
     else
         {
-        FTRACE(FPrint(_L("CFMRadioAlfVisualizer::HandleGestureL() call ongoing -> gestures ignored")));
+        FTRACE(FPrint(_L("CFMRadioAlfVisualizer::HandleGestureL() call or tuning ongoing -> gestures ignored")));
         }
     }
 // ----------------------------------------------------------------------------
@@ -724,7 +725,7 @@
         }
     if ( aEvent.IsPointerEvent() )
         {
-        CGestureControl::OfferEventL( aEvent );
+        return CGestureControl::OfferEventL( aEvent );
         }
     return EFalse;
     }