Update AudioFocusHelperImpl.java

This commit is contained in:
vshcherb 2014-11-19 17:46:02 +01:00
parent 62038af20e
commit 367b4971f9

View file

@ -30,6 +30,7 @@ public class AudioFocusHelperImpl implements AudioManager.OnAudioFocusChangeList
@Override @Override
public boolean abandonFocus(Context context, int streamType) public boolean abandonFocus(Context context, int streamType)
{ {
AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
return AudioManager.AUDIOFOCUS_REQUEST_GRANTED == mAudioManager.abandonAudioFocus(this); return AudioManager.AUDIOFOCUS_REQUEST_GRANTED == mAudioManager.abandonAudioFocus(this);
} }