remove invalid hidden icons
This commit is contained in:
parent
bf61acc715
commit
8ba3c08cd1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue