Skip to content

Commit 6fc9025

Browse files
Update media-placeholders/src/main/java/org/wordpress/aztec/placeholders/ViewPlaceholderManager.kt
Co-authored-by: Amanda Riu <[email protected]>
1 parent eb751c9 commit 6fc9025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media-placeholders/src/main/java/org/wordpress/aztec/placeholders/ViewPlaceholderManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class ViewPlaceholderManager(
186186
* @param shouldUpdateItem This function should return true if the span can be updated, false if it should be removed
187187
* @param updateItem Function that updates the selected item
188188
*/
189-
suspend override fun removeOrUpdate(uuid: String, shouldUpdateItem: (Attributes) -> Boolean, updateItem: (currentAttributes: Map<String, String>) -> Map<String, String>): Boolean {
189+
override suspend fun removeOrUpdate(uuid: String, shouldUpdateItem: (Attributes) -> Boolean, updateItem: (currentAttributes: Map<String, String>) -> Map<String, String>): Boolean {
190190
val currentItem = aztecText.editableText.getSpans(0, aztecText.length(), AztecPlaceholderSpan::class.java).find {
191191
it.attributes.getValue(UUID_ATTRIBUTE) == uuid
192192
} ?: return false

0 commit comments

Comments
 (0)