replacing "find" with "firstOrNull"
This commit is contained in:
parent
a8ae8bfea4
commit
df4eadafde
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class QuickFilterEventTypeAdapter(
|
|||
|
||||
init {
|
||||
quickFilterEventTypeIds.forEach { quickFilterEventType ->
|
||||
val eventType = allEventTypes.find { eventType -> eventType.id.toString() == quickFilterEventType } ?: return@forEach
|
||||
val eventType = allEventTypes.firstOrNull { eventType -> eventType.id.toString() == quickFilterEventType } ?: return@forEach
|
||||
quickFilterEventTypes.add(eventType)
|
||||
|
||||
if (displayEventTypes.contains(eventType.id.toString())) {
|
||||
|
|
Loading…
Reference in a new issue