Use a simple forEach loop
This commit is contained in:
parent
a4114bd501
commit
a8d5c1fbb8
|
@ -15,7 +15,7 @@ class FilterEventTypeAdapter(val activity: SimpleActivity, val eventTypes: List<
|
||||||
private val selectedKeys = HashSet<Long>()
|
private val selectedKeys = HashSet<Long>()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
eventTypes.forEachIndexed { _, eventType ->
|
eventTypes.forEach { eventType ->
|
||||||
if (displayEventTypes.contains(eventType.id.toString())) {
|
if (displayEventTypes.contains(eventType.id.toString())) {
|
||||||
selectedKeys.add(eventType.id!!)
|
selectedKeys.add(eventType.id!!)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue