From 8e412b3587e90c23cb8a821ec848fc0129858039 Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Thu, 2 Jan 2025 17:31:03 +0100 Subject: [PATCH] fix: Fix categories not being shown when editing --- .../p_vacho/neat_calendar/activities/CreateEventActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/p_vacho/neat_calendar/activities/CreateEventActivity.kt b/app/src/main/java/com/p_vacho/neat_calendar/activities/CreateEventActivity.kt index 86cfafb..2dcac46 100644 --- a/app/src/main/java/com/p_vacho/neat_calendar/activities/CreateEventActivity.kt +++ b/app/src/main/java/com/p_vacho/neat_calendar/activities/CreateEventActivity.kt @@ -223,10 +223,9 @@ class CreateEventActivity : AppCompatActivity() { eventCategories.clear() // should be empty, but it doesn't hurt eventCategories.addAll(newEventCategories) - // TODO: For some reason, the categories still aren't shown here - @Suppress("NotifyDataSetChanged") categoryRecyclerView.adapter!!.notifyDataSetChanged() + updateCategoryView() } } }