From 4296a8af88001b6c5dd030bce98b0516675eab5a Mon Sep 17 00:00:00 2001 From: tonihei Date: Thu, 10 Nov 2022 12:56:11 +0000 Subject: [PATCH] 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 33bea391d42cb5669e6d2c97c0553f3c0c63467b)