--- a/fmradio/fmradio/src/fmradioappui.cpp Wed Sep 01 12:30:32 2010 +0100
+++ b/fmradio/fmradio/src/fmradioappui.cpp Wed Sep 15 12:13:25 2010 +0300
@@ -2581,7 +2581,8 @@
}
else
{
- TFMRadioRegionSetting region = iRadioEngine->GetRegionL();
+ TFMRadioRegionSetting region = iRadioEngine->GetRegionL();
+ TBool mute = EFalse;
if ( iOfflineQueryDialogActivated ||
iConnectHeadsetQuery ||
@@ -2592,11 +2593,22 @@
else
{
iChannelListView->CancelMoveL();
+ if ( iCurrentRadioState == EFMRadioStateBusyScanLocalStations )
+ {
+ mute = ETrue;
+ }
ActivateLocalViewL( view->Id() );
}
TApaTask task( iCoeEnv->WsSession() );
task.SetWgId( iCoeEnv->RootWin().Identifier() );
task.BringToForeground();
+ if ( mute )
+ {
+ // unmute if the scanning was ongoing
+ iRadioEngine->SetMuteOn( EFalse );
+ // just to make sure the mute status is up to date
+ HandleVolumeChangedCallback();
+ }
}
}
}