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

Commit 35871ed7 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioManager: fix javadoc for setAudioServerStateCallback

Fix the documentation that was indicating the wrong method to
unregister a callback.

Test: make
Flag: EXEMPT, doc fix
Bug: 383228294
Change-Id: I1560fc61c64209742d37bdd78374257298f1b1b4
parent c3fc17eb
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -8469,9 +8469,13 @@ public class AudioManager {
    /**
     * @hide
     * Registers a callback for notification of audio server state changes.
     * @param executor {@link Executor} to handle the callbacks
     * @param stateCallback the callback to receive the audio server state changes
     *        To remove the callabck, pass a null reference for both executor and stateCallback.
     * @param executor {@link Executor} to handle the callbacks. Must be non null.
     * @param stateCallback the callback to receive the audio server state changes.
     *                      Must be non null. To remove the callabck,
     *                      call {@link #clearAudioServerStateCallback()}
     * @throws IllegalArgumentException If a null argument is specified.
     * @throws IllegalStateException If a callback is already registered
     * *
     */
    @SystemApi
    public void setAudioServerStateCallback(@NonNull Executor executor,