fmradio/fmradiomcpplugin/src/fmradiomcpplugin.cpp
branchRCL_3
changeset 15 0004e923f486
parent 8 3cb097cb90f8
child 22 9f3ff466f56b
--- a/fmradio/fmradiomcpplugin/src/fmradiomcpplugin.cpp	Wed Apr 14 15:57:41 2010 +0300
+++ b/fmradio/fmradiomcpplugin/src/fmradiomcpplugin.cpp	Tue Apr 27 16:38:14 2010 +0300
@@ -698,7 +698,8 @@
         switch( aMuteState )
             {
             case EFMRadioPSMuteStateOn:
-                if ( iEngine->ApplicationRunningState() != EFMRadioPSApplicationRunning )
+                if ( iEngine->ApplicationRunningState() != EFMRadioPSApplicationRunning ||
+                        iEngine->AntennaStatus() == EFMRadioPSHeadsetDisconnected )
                     {
                     UpdatePublishedToolBarL( KFMRadioUnmuteDimmed );
                     }
@@ -709,7 +710,8 @@
                 break;
             case EFMRadioPSMuteStateOff:
             case EFMRadioPSMuteStateUninitialized:
-                if ( iEngine->ApplicationRunningState() != EFMRadioPSApplicationRunning )
+                if ( iEngine->ApplicationRunningState() != EFMRadioPSApplicationRunning ||
+                        iEngine->AntennaStatus() == EFMRadioPSHeadsetDisconnected )
                     {
                     UpdatePublishedToolBarL( KFMRadioMuteDimmed );
                     }