We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b4b46 commit e4b10b4Copy full SHA for e4b10b4
app/src/main/kotlin/com/simplemobiletools/launcher/adapters/LaunchersAdapter.kt
@@ -62,8 +62,8 @@ class LaunchersAdapter(
62
fun hideIcon(item: HomeScreenGridItem) {
63
val itemToRemove = launchers.firstOrNull { it.getLauncherIdentifier() == item.getItemIdentifier() }
64
if (itemToRemove != null) {
65
- val position = launchers.indexOf(itemToRemove)
66
- launchers.remove(itemToRemove)
+ val position = launchers.indexOfFirst { it.getLauncherIdentifier() == item.getItemIdentifier() }
+ launchers.removeAt(position)
67
notifyItemRemoved(position)
68
}
69
0 commit comments