From b3cfd0967d178f474172c4a669f1e58784318d79 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 26 May 2016 20:05:58 +0300 Subject: Snap: Update comment to reflect audio focus changes Change-Id: I60655aa3a42be218dac5062932692a49a596bedf --- src/com/android/camera/VideoModule.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index 896dc195b..ff3e787a4 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -1835,14 +1835,12 @@ public class VideoModule implements CameraModule, } /* - * Make sure we're not recording music playing in the background, ask the - * MediaPlaybackService to pause playback. + * Make sure we're not recording music playing in the background, + * send request to AudioManager to obtain audio focus. */ private void requestAudioFocus() { AudioManager am = (AudioManager)mActivity.getSystemService(Context.AUDIO_SERVICE); - // Send request to obtain audio focus. This will stop other - // music stream. int result = am.requestAudioFocus(null, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT); -- cgit v1.2.3