diff --git a/app/src/org/commcare/tasks/EntityLoaderHelper.kt b/app/src/org/commcare/tasks/EntityLoaderHelper.kt index d1b048fff..35cd11c99 100644 --- a/app/src/org/commcare/tasks/EntityLoaderHelper.kt +++ b/app/src/org/commcare/tasks/EntityLoaderHelper.kt @@ -37,7 +37,7 @@ class EntityLoaderHelper( fun loadEntities(nodeset: TreeReference): Pair>, List>? { val references = factory.expandReferenceList(nodeset) - val full: MutableList> = ArrayList() + val entities: MutableList> = ArrayList() focusTargetIndex = -1 var indexInFullList = 0 for (ref in references) { @@ -46,7 +46,7 @@ class EntityLoaderHelper( } val e = factory.getEntity(ref) if (e != null) { - full.add(e) + entities.add(e) if (e.shouldReceiveFocus()) { focusTargetIndex = indexInFullList } @@ -54,9 +54,9 @@ class EntityLoaderHelper( } } - factory.prepareEntities(full) + factory.prepareEntities(entities) factory.printAndClearTraces("build") - return Pair>, List>(full, references) + return Pair>, List>(entities, references) } override fun cancel() {