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

Commit 9b22133e authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioFocusRequest code sample: qualify class for some constants

Add the name of the AudioManager class for the REQUEST constants.

Test: build framework
Bug: 63907030

Change-Id: Id79223a5376d4c75cc74fb471d35672b452d9fc9
parent 5d3ff609
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;
 *     }
 * }