Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c192660 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "AudioFocusRequest code sample: qualify class for some constants"

parents d96895df 9b22133e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -163,12 +163,12 @@ import android.os.Looper;
 * // requesting audio focus
 * int res = mAudioManager.requestAudioFocus(mFocusRequest);
 * synchronized (mFocusLock) {
 *     if (res == AUDIOFOCUS_REQUEST_FAILED) {
 *     if (res == AudioManager.AUDIOFOCUS_REQUEST_FAILED) {
 *         mPlaybackDelayed = false;
 *     } else if (res == AUDIOFOCUS_REQUEST_GRANTED) {
 *     } else if (res == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {
 *         mPlaybackDelayed = false;
 *         playbackNow();
 *     } else if (res == AUDIOFOCUS_REQUEST_DELAYED) {
 *     } else if (res == AudioManager.AUDIOFOCUS_REQUEST_DELAYED) {
 *        mPlaybackDelayed = true;
 *     }
 * }