From 4405189165723bc6f5ca789bce4a5bee4e64529c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20L=C3=B3pez=20Ma=C3=B1as?= Date: Tue, 10 Oct 2023 09:23:12 +0200 Subject: [PATCH] fix: fix marker listener in matching node (#425) --- .../main/java/com/google/maps/android/compose/MapApplier.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maps-compose/src/main/java/com/google/maps/android/compose/MapApplier.kt b/maps-compose/src/main/java/com/google/maps/android/compose/MapApplier.kt index 37452efef..2c9ef6fbf 100644 --- a/maps-compose/src/main/java/com/google/maps/android/compose/MapApplier.kt +++ b/maps-compose/src/main/java/com/google/maps/android/compose/MapApplier.kt @@ -205,8 +205,9 @@ private inline fun Iterable.findInputCa for (item in this) { if (item is NodeT && nodeMatchPredicate(item)) { // Found a matching node - nodeInputCallback(item)?.invoke(marker) - return true + if (nodeInputCallback(item)?.invoke(marker) == true) { + return true + } } else if (item is InputHandlerNode) { // Found an input handler, but keep looking for matching nodes callback = inputHandlerCallback(item)