From c2334063766d59e6f48a8f76ac6b3661a4fffc8e Mon Sep 17 00:00:00 2001 From: Evgenii Kozlov Date: Mon, 1 Aug 2022 17:14:14 +0300 Subject: [PATCH] DROID-230 Editor | Creating objects in objects via mention (@) option might crash app (#2456) --- CHANGELOG.md | 2 ++ .../anytype/core_ui/widgets/toolbar/adapter/MentionAdapter.kt | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7093f7fb07..b3fe6cb8c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ * Editor | Add possibility to upload a file into a media block in error state (#2351) * Editor | Should not trigger keyboard opening when tapping on object's top toolbar (#2399) * Editor | Copy/paste is not working for table of contents (#2441) +* Editor | Can't create an object using the @ mention option due to an internal error (#2455) +* Editor | Creating objects in objects via the mention (@) option might crash app (#2456) * Search | Keyboard should be dismissed when navigating from search results to sets of objects (#2416) * Sets | Grid View headers should show or hide object icon in row headers according to the view settings (#2408) * Sets | Updated screen text for sorts for checkbox relations (#2424) diff --git a/core-ui/src/main/java/com/anytypeio/anytype/core_ui/widgets/toolbar/adapter/MentionAdapter.kt b/core-ui/src/main/java/com/anytypeio/anytype/core_ui/widgets/toolbar/adapter/MentionAdapter.kt index e6fd26818a..148e73387c 100644 --- a/core-ui/src/main/java/com/anytypeio/anytype/core_ui/widgets/toolbar/adapter/MentionAdapter.kt +++ b/core-ui/src/main/java/com/anytypeio/anytype/core_ui/widgets/toolbar/adapter/MentionAdapter.kt @@ -18,6 +18,7 @@ class MentionAdapter( fun setData(mentions: List) { if (mentions.isEmpty()) { data.clear() + notifyDataSetChanged() } else { data.clear() data.addAll(mentions)