From f5d46f254cb05b67cba29f000765bcba3e4fe13d Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Thu, 22 Sep 2022 22:28:51 +0200 Subject: [PATCH] Ensure searchables with tags are saved to searchable table --- .../de/mm20/launcher2/customattrs/CustomAttributesRepository.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/customattrs/src/main/java/de/mm20/launcher2/customattrs/CustomAttributesRepository.kt b/customattrs/src/main/java/de/mm20/launcher2/customattrs/CustomAttributesRepository.kt index 35a53f57..e408a336 100644 --- a/customattrs/src/main/java/de/mm20/launcher2/customattrs/CustomAttributesRepository.kt +++ b/customattrs/src/main/java/de/mm20/launcher2/customattrs/CustomAttributesRepository.kt @@ -92,6 +92,7 @@ internal class CustomAttributesRepositoryImpl( override fun setTags(searchable: Searchable, tags: List) { val dao = appDatabase.customAttrsDao() scope.launch { + favoritesRepository.save(searchable) dao.setTags(searchable.key, tags.map { CustomTag(it).toDatabaseEntity(searchable.key) })