From d400ba6efb292a32d6d251ae4455e1a406d2d1f4 Mon Sep 17 00:00:00 2001 From: Ricardo Cervera Date: Wed, 15 Jan 2014 13:50:43 -0800 Subject: [PATCH] docs: Fixed typos in audio-focus.jd. Bug: 12528498 HTML: http://quixote.mtv.corp.google.com:8102/training/managing-audio/audio-focus.html Change-Id: I2198e4e27661b374d7c812bc7f26658073feae20 --- docs/html/training/managing-audio/audio-focus.jd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/html/training/managing-audio/audio-focus.jd b/docs/html/training/managing-audio/audio-focus.jd index 33f04e99f4667..6dcaa7f8105ef 100644 --- a/docs/html/training/managing-audio/audio-focus.jd +++ b/docs/html/training/managing-audio/audio-focus.jd @@ -68,7 +68,7 @@ int result = am.requestAudioFocus(afChangeListener, AudioManager.AUDIOFOCUS_GAIN); if (result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) { - am.unregisterMediaButtonEventReceiver(RemoteControlReceiver); + am.registerMediaButtonEventReceiver(RemoteControlReceiver); // Start playback. } @@ -118,7 +118,7 @@ app requests it. How your app responds to a loss of audio focus depends on the m loss.

The {@link android.media.AudioManager.OnAudioFocusChangeListener#onAudioFocusChange -onAudioFocusChange()} callback method of they audio focus change listener you registered when +onAudioFocusChange()} callback method of the audio focus change listener you registered when requesting audio focus receives a parameter that describes the focus change event. Specifically, the possible focus loss events mirror the focus request types from the previous section—permanent loss, transient loss, and transient with ducking permitted.