Use a simple forEach loop

This commit is contained in:
Naveen 2023-09-04 14:43:30 +05:30
parent a4114bd501
commit a8d5c1fbb8
No known key found for this signature in database
GPG Key ID: 0E155DAD31671DA3
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class FilterEventTypeAdapter(val activity: SimpleActivity, val eventTypes: List<
private val selectedKeys = HashSet<Long>()
init {
eventTypes.forEachIndexed { _, eventType ->
eventTypes.forEach { eventType ->
if (displayEventTypes.contains(eventType.id.toString())) {
selectedKeys.add(eventType.id!!)
}