mpxmusicplayer/mediakeyhandler/src/mpxmediakeyhandlerimp.cpp
branchRCL_3
changeset 21 cb96c29156b2
parent 18 56b11cf8addb
child 24 26a1709b9fec
equal deleted inserted replaced
19:a12246c97fcc 21:cb96c29156b2
   499                         iMuted = ETrue;
   499                         iMuted = ETrue;
   500                         }
   500                         }
   501                     }
   501                     }
   502                     else if ( aValue != iCurrentVol )
   502                     else if ( aValue != iCurrentVol )
   503                     {
   503                     {
   504                     if ( aValue != 0 )
   504                     if ( aValue != 0 && ( iResponseHandler->iCountOfVolumeCommands == 0 ) )
   505                         {
   505                         {
       
   506                         // if we are processing remcon events we shouldn't change the current volume value
   506                         iCurrentVol = aValue;
   507                         iCurrentVol = aValue;
   507                         }
   508                         }
   508                     }
   509                     }
   509                 
   510                 
   510                 if ( iCurrentVol == KErrNotFound ) // muted by some other application before launching Music Player
   511                 if ( iCurrentVol == KErrNotFound ) // muted by some other application before launching Music Player
  1122             break;
  1123             break;
  1123             }
  1124             }
  1124         case ERemConCoreApiVolumeUp:
  1125         case ERemConCoreApiVolumeUp:
  1125         case ERemConCoreApiVolumeDown:
  1126         case ERemConCoreApiVolumeDown:
  1126             {
  1127             {
       
  1128             iResponseHandler->iCountOfVolumeCommands++;
  1127             iTimer->Cancel();
  1129             iTimer->Cancel();
  1128             MMPXPlaybackUtility* pbUtil( NULL );
  1130             MMPXPlaybackUtility* pbUtil( NULL );
  1129             MPX_TRAPD( err, pbUtil = MMPXPlaybackUtility::UtilityL( KPbModeActivePlayer ));
  1131             MPX_TRAPD( err, pbUtil = MMPXPlaybackUtility::UtilityL( KPbModeActivePlayer ));
  1130             if( err != KErrNone )
  1132             if( err != KErrNone )
  1131                 {
  1133                 {