diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/HiddenIconsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/HiddenIconsActivity.kt index 9961c9f..d2e6570 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/HiddenIconsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/HiddenIconsActivity.kt @@ -66,6 +66,12 @@ class HiddenIconsActivity : SimpleActivity(), RefreshRecyclerViewListener { } } + val iconsToRemove = hiddenIcons.filter { it.drawable == null } + if (iconsToRemove.isNotEmpty()) { + hiddenIconsDB.removeHiddenIcons(iconsToRemove) + hiddenIcons.removeAll(iconsToRemove) + } + runOnUiThread { HiddenIconsAdapter(this, hiddenIcons, this, manage_hidden_icons_list) { }.apply {