equal
deleted
inserted
replaced
1355 |
1355 |
1356 //compare bitmask to see if feature supported |
1356 //compare bitmask to see if feature supported |
1357 if ( !(iFMRadioVariationFlags & KFMRadioInternalAntennaSupported) && |
1357 if ( !(iFMRadioVariationFlags & KFMRadioInternalAntennaSupported) && |
1358 iCurrentRadioState != EFMRadioStateOffForPhoneCall && |
1358 iCurrentRadioState != EFMRadioStateOffForPhoneCall && |
1359 iCurrentRadioState != EFMRadioStateOffBeforePhoneCall ) |
1359 iCurrentRadioState != EFMRadioStateOffBeforePhoneCall ) |
1360 { |
1360 { |
|
1361 if ( !iRadioEngine->IsRadioOn() && !iRadioEngine->IsInCall() ) |
|
1362 { |
|
1363 FTRACE( FPrint( _L("CFMRadioAppUi::HandleHeadsetReconnectedCallback() - Turn radio on") ) ); |
|
1364 TurnRadioOn(); |
|
1365 } |
1361 // active offline query controls radio on/off |
1366 // active offline query controls radio on/off |
1362 if ( iAudioLost ) |
1367 else if ( iAudioLost ) |
1363 { |
1368 { |
|
1369 FTRACE( FPrint( _L("CFMRadioAppUi::HandleHeadsetReconnectedCallback() - Try to resume") ) ); |
1364 TRAP_IGNORE( TryToResumeAudioL() ); |
1370 TRAP_IGNORE( TryToResumeAudioL() ); |
1365 } |
1371 } |
1366 else if ( ( iGlobalOfflineQuery && !iGlobalOfflineQuery->IsActive() ) || |
1372 else if ( ( iGlobalOfflineQuery && !iGlobalOfflineQuery->IsActive() ) || |
1367 !iGlobalOfflineQuery ) |
1373 !iGlobalOfflineQuery ) |
1368 { |
1374 { |
|
1375 FTRACE( FPrint( _L("CFMRadioAppUi::HandleHeadsetReconnectedCallback() - Offline query") ) ); |
1369 iRadioEngine->InitializeRadio(); |
1376 iRadioEngine->InitializeRadio(); |
1370 } |
1377 } |
1371 HandleVolumeChangedCallback(); |
1378 HandleVolumeChangedCallback(); |
1372 } |
1379 } |
1373 } |
1380 } |