Rename isEmpty to isDynamicListEmpty
This commit is contained in:
parent
ff18caac02
commit
14715790e0
2 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ class Presets private constructor() {
|
|||
var appsList: List<ApplicationInfo>? = null
|
||||
|
||||
presetList.forEach {
|
||||
if (it.isEmpty()) {
|
||||
if (it.isDynamicListEmpty()) {
|
||||
if (appsList == null) {
|
||||
appsList = getInstalledApplicationsCompat(pms, 0, 0)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ abstract class BasePreset(val name: String) {
|
|||
|
||||
protected abstract fun canBeAddedIntoPreset(appInfo: ApplicationInfo): Boolean
|
||||
|
||||
fun isEmpty() = packageNames.isEmpty()
|
||||
fun isDynamicListEmpty() = packageNames.isEmpty()
|
||||
|
||||
fun containsPackage(packageName: String) = exactPackageNames.contains(packageName) || packageNames.contains(packageName)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue