From 6fc9025456585bce372c283bd9d78dba71178617 Mon Sep 17 00:00:00 2001 From: Vojta Smrcek Date: Thu, 23 Jan 2025 17:15:58 +0100 Subject: [PATCH] Update media-placeholders/src/main/java/org/wordpress/aztec/placeholders/ViewPlaceholderManager.kt Co-authored-by: Amanda Riu <5810477+AmandaRiu@users.noreply.github.com> --- .../org/wordpress/aztec/placeholders/ViewPlaceholderManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media-placeholders/src/main/java/org/wordpress/aztec/placeholders/ViewPlaceholderManager.kt b/media-placeholders/src/main/java/org/wordpress/aztec/placeholders/ViewPlaceholderManager.kt index 75edb375f..4136893b2 100644 --- a/media-placeholders/src/main/java/org/wordpress/aztec/placeholders/ViewPlaceholderManager.kt +++ b/media-placeholders/src/main/java/org/wordpress/aztec/placeholders/ViewPlaceholderManager.kt @@ -186,7 +186,7 @@ class ViewPlaceholderManager( * @param shouldUpdateItem This function should return true if the span can be updated, false if it should be removed * @param updateItem Function that updates the selected item */ - suspend override fun removeOrUpdate(uuid: String, shouldUpdateItem: (Attributes) -> Boolean, updateItem: (currentAttributes: Map) -> Map): Boolean { + override suspend fun removeOrUpdate(uuid: String, shouldUpdateItem: (Attributes) -> Boolean, updateItem: (currentAttributes: Map) -> Map): Boolean { val currentItem = aztecText.editableText.getSpans(0, aztecText.length(), AztecPlaceholderSpan::class.java).find { it.attributes.getValue(UUID_ATTRIBUTE) == uuid } ?: return false