equal
deleted
inserted
replaced
1491 FTRACE( FPrint( _L("CFMRadioAppUi::HandleWsEventL - event %d "), aEvent.Type() ) ); |
1491 FTRACE( FPrint( _L("CFMRadioAppUi::HandleWsEventL - event %d "), aEvent.Type() ) ); |
1492 switch ( aEvent.Type() ) |
1492 switch ( aEvent.Type() ) |
1493 { |
1493 { |
1494 case EEventFocusLost: |
1494 case EEventFocusLost: |
1495 { |
1495 { |
1496 // being sent to background, so if tuning cancel first then handle event |
1496 // being sent to background, cancel any seek expect local stations scan |
1497 CancelSeek(); |
1497 if ( iCurrentRadioState == EFMRadioStateBusySeek ) |
|
1498 { |
|
1499 iRadioEngine->CancelScan(); |
|
1500 HandleStopSeekCallback(); |
|
1501 } |
1498 CAknViewAppUi::HandleWsEventL( aEvent, aDestination ); |
1502 CAknViewAppUi::HandleWsEventL( aEvent, aDestination ); |
1499 break; |
1503 break; |
1500 } |
1504 } |
1501 case EEventFocusGained: |
1505 case EEventFocusGained: |
1502 // override default behavior of unfading the ui |
1506 // override default behavior of unfading the ui |
1644 FTRACE( FPrint( _L("CFMRadioAppUi::HandleControlEventL - aEventID = %d"), aEventType) ); |
1648 FTRACE( FPrint( _L("CFMRadioAppUi::HandleControlEventL - aEventID = %d"), aEventType) ); |
1645 if ( (aEventType == EEventStateChanged) && |
1649 if ( (aEventType == EEventStateChanged) && |
1646 ( aControl == iActiveVolumePopupControl ) ) |
1650 ( aControl == iActiveVolumePopupControl ) ) |
1647 { |
1651 { |
1648 TInt volumeControlLevel = iActiveVolumePopupControl->Value(); |
1652 TInt volumeControlLevel = iActiveVolumePopupControl->Value(); |
|
1653 |
|
1654 if ( iRadioEngine->IsMuteOn() && volumeControlLevel == 1 ) |
|
1655 { |
|
1656 // Volume has been muted and volume is changed from |
|
1657 // popup. Restore volume to the previous level. |
|
1658 volumeControlLevel = iRadioEngine->GetVolume(); |
|
1659 volumeControlLevel++; |
|
1660 if ( volumeControlLevel > KFMRadioMaxVolumeLevel ) |
|
1661 { |
|
1662 volumeControlLevel = KFMRadioMaxVolumeLevel; |
|
1663 } |
|
1664 iActiveVolumePopupControl->SetValue( volumeControlLevel ); |
|
1665 } |
|
1666 |
1649 // Set mute |
1667 // Set mute |
1650 if ( volumeControlLevel == KFMRadioMinVolumeLevel ) |
1668 if ( volumeControlLevel == KFMRadioMinVolumeLevel ) |
1651 { |
1669 { |
1652 // Mute status could change from toolbar, svk or pointer event |
1670 // Mute status could change from toolbar, svk or pointer event |
1653 if ( !iRadioEngine->IsMuteOn() ) |
1671 if ( !iRadioEngine->IsMuteOn() ) |