fmradio/fmradio/src/fmradioscanlocalstationsview.cpp
branchRCL_3
changeset 7 95ac6b0f7f5b
parent 6 3cb097cb90f8
child 11 97dcae98e602
--- a/fmradio/fmradio/src/fmradioscanlocalstationsview.cpp	Mon Mar 15 12:40:34 2010 +0200
+++ b/fmradio/fmradio/src/fmradioscanlocalstationsview.cpp	Wed Mar 31 21:31:32 2010 +0300
@@ -890,7 +890,7 @@
             restoreFrequency = ETrue;
             }
         UpdateToolbar();
-        RestoreRadio( restoreFrequency );
+        RestoreRadio( restoreFrequency, EFalse );
         
         // update now playing index if the tuning is triggered from accessory 
         TInt frequencyIndex = FrequencyIndex( tunedFrequency );
@@ -912,7 +912,7 @@
 // Restores the radio after scanning
 // -----------------------------------------------------------------------------------------------
 //
-void CFMRadioScanLocalStationsView::RestoreRadio( TBool aTuneInitialFrequency )
+void CFMRadioScanLocalStationsView::RestoreRadio( TBool aTuneInitialFrequency, TBool aUnmute )
     {
     FTRACE( FPrint( _L("CFMRadioScanLocalStationsView::RestoreRadio") ) );
     CFMRadioAppUi* appUi = static_cast<CFMRadioAppUi*>( iCoeEnv->AppUi() );
@@ -924,8 +924,10 @@
             iTuneRequested = ETrue;
             iRadioEngine.Tune( iInitialTunedFrequency );
             }
-        //unmute radio
-        iRadioEngine.SetMuteOn( EFalse );
+        if ( aUnmute ) // set mute off by default
+            {
+            iRadioEngine.SetMuteOn( EFalse );
+            }
         iInitialTunedFrequency = 0;
         }
     appUi->SetStartupWizardRunning( EFalse );