diff --git a/maps-compose/src/main/java/com/google/maps/android/compose/GoogleMap.kt b/maps-compose/src/main/java/com/google/maps/android/compose/GoogleMap.kt index 2d292a2a0..812a7c14d 100644 --- a/maps-compose/src/main/java/com/google/maps/android/compose/GoogleMap.kt +++ b/maps-compose/src/main/java/com/google/maps/android/compose/GoogleMap.kt @@ -115,6 +115,7 @@ public fun GoogleMap( it.onMyLocationClick = onMyLocationClick it.onPOIClick = onPOIClick } + val currentContentDescription by rememberUpdatedState(contentDescription) val currentLocationSource by rememberUpdatedState(locationSource) val currentCameraPositionState by rememberUpdatedState(cameraPositionState) val currentContentPadding by rememberUpdatedState(contentPadding) @@ -128,7 +129,7 @@ public fun GoogleMap( mapView.newComposition(parentComposition) { MapUpdater( mergeDescendants = mergeDescendants, - contentDescription = contentDescription, + contentDescription = currentContentDescription, cameraPositionState = currentCameraPositionState, clickListeners = mapClickListeners, contentPadding = currentContentPadding,