refresh icons on uninstall

This commit is contained in:
tibbi
2022-09-19 18:44:30 +02:00
parent d3bdfbf1af
commit ed9fc728ee
6 changed files with 105 additions and 74 deletions

View File

@ -29,6 +29,12 @@ data class AppLauncher(
fun getBubbleText() = title
fun getHashToCompare() = getStringToCompare().hashCode()
fun getStringToCompare(): String {
return copy(id = null, drawable = null).toString()
}
override fun compareTo(other: AppLauncher): Int {
var result = when {
sorting and SORT_BY_TITLE != 0 -> title.normalizeString().lowercase().compareTo(other.title.normalizeString().lowercase())