compare AppLaunchers by package name

This commit is contained in:
tibbi 2016-08-14 12:48:12 +02:00
parent 2ca2cec35b
commit cf0405b9c5

View File

@ -1,3 +1,7 @@
package com.simplemobiletools.applauncher.models package com.simplemobiletools.applauncher.models
data class AppLauncher(val name: String, val pkgName: String, val iconId: Int) data class AppLauncher(val name: String, val pkgName: String, val iconId: Int) {
override fun equals(other: Any?): Boolean {
return pkgName.equals((other as AppLauncher).pkgName)
}
}