From 367b4971f944444d1fc8b8dfd8941036766f69a3 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Wed, 19 Nov 2014 17:46:02 +0100 Subject: [PATCH] Update AudioFocusHelperImpl.java --- OsmAnd/src/net/osmand/plus/api/AudioFocusHelperImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/src/net/osmand/plus/api/AudioFocusHelperImpl.java b/OsmAnd/src/net/osmand/plus/api/AudioFocusHelperImpl.java index 2be1d4b168..3098c4d85e 100644 --- a/OsmAnd/src/net/osmand/plus/api/AudioFocusHelperImpl.java +++ b/OsmAnd/src/net/osmand/plus/api/AudioFocusHelperImpl.java @@ -30,6 +30,7 @@ public class AudioFocusHelperImpl implements AudioManager.OnAudioFocusChangeList @Override public boolean abandonFocus(Context context, int streamType) { + AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); return AudioManager.AUDIOFOCUS_REQUEST_GRANTED == mAudioManager.abandonAudioFocus(this); }