1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3212 Editor | Fix | Mention create object item doesn't update (#1959)

This commit is contained in:
Konstantin Ivanov 2024-12-24 13:30:08 +01:00 committed by GitHub
parent d60d0b7c48
commit e8c40489b7
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -28,6 +28,10 @@ class MentionAdapter(
fun updateFilter(filter: String) {
mentionFilter = filter
val newPagePosition = currentList.indexOfFirst { it is NewObject }
if (newPagePosition != -1) {
notifyItemChanged(newPagePosition)
}
}
fun clear() {

View file

@ -1503,7 +1503,6 @@ class DefaultBlockViewRenderer @Inject constructor(
)
}
ObjectType.Layout.FILE,
ObjectType.Layout.BOOKMARK,
ObjectType.Layout.VIDEO,
ObjectType.Layout.AUDIO,
ObjectType.Layout.PDF -> {