Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
下タブのidが見つからない場合のクラッシュを避ける
Browse files Browse the repository at this point in the history
  • Loading branch information
koji-1009 committed May 29, 2019
1 parent 7ddd559 commit b4dfaf9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ class MenuImpl(
}

override fun hasVisibleItems(): Boolean {
return items.firstOrNull() { it.isVisible } != null
return items.firstOrNull { it.isVisible } != null
}

override fun findItem(id: Int): MenuItem? {
return items.first { it.itemId == id }
return items.firstOrNull { it.itemId == id }
}

override fun size(): Int {
Expand Down

0 comments on commit b4dfaf9

Please sign in to comment.