Ensure listener invocations use final state variable.

The MediaControllerImplBase listener invocations currently use the
class member state that can change if one of the listener method
implementations changes the state recursively.

Updating the listener invocations to use a final local variable
ensures all listeners get consistent updates.

PiperOrigin-RevId: 487503373
(cherry picked from commit 33bea391d4)
This commit is contained in:
tonihei 2022-11-10 12:56:11 +00:00 committed by microkatz
parent 7f17ff6d00
commit 4296a8af88

Diff content is not available