summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@cyanogenmod.org>2016-05-26 20:05:58 +0300
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 21:57:50 +0200
commite627f3f8aa6d13144c2453cf56aca9f9b08bf5b1 (patch)
tree2dbb754cbda48a1b02021a752f6348db9962e9ca
parent5cab2e3f008f6b6e21eda10af41904d094db88ce (diff)
downloadandroid_packages_apps_Snap-e627f3f8aa6d13144c2453cf56aca9f9b08bf5b1.zip
android_packages_apps_Snap-e627f3f8aa6d13144c2453cf56aca9f9b08bf5b1.tar.gz
android_packages_apps_Snap-e627f3f8aa6d13144c2453cf56aca9f9b08bf5b1.tar.bz2
Snap: Update comment to reflect audio focus changes
Change-Id: I60655aa3a42be218dac5062932692a49a596bedf
-rw-r--r--src/com/android/camera/VideoModule.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 497d898..55f2fbe 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1976,14 +1976,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);