Skip to content

Commit

Permalink
Update media-placeholders/src/main/java/org/wordpress/aztec/placehold…
Browse files Browse the repository at this point in the history
…ers/ViewPlaceholderManager.kt

Co-authored-by: Amanda Riu <[email protected]>
  • Loading branch information
planarvoid and AmandaRiu authored Jan 23, 2025
1 parent eb751c9 commit 6fc9025
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String>) -> Map<String, String>): Boolean {
override suspend fun removeOrUpdate(uuid: String, shouldUpdateItem: (Attributes) -> Boolean, updateItem: (currentAttributes: Map<String, String>) -> Map<String, String>): Boolean {
val currentItem = aztecText.editableText.getSpans(0, aztecText.length(), AztecPlaceholderSpan::class.java).find {
it.attributes.getValue(UUID_ATTRIBUTE) == uuid
} ?: return false
Expand Down

0 comments on commit 6fc9025

Please sign in to comment.