mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-17 03:50:56 +01:00
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 {
|
runOnUiThread {
|
||||||
HiddenIconsAdapter(this, hiddenIcons, this, manage_hidden_icons_list) {
|
HiddenIconsAdapter(this, hiddenIcons, this, manage_hidden_icons_list) {
|
||||||
}.apply {
|
}.apply {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user