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

Commit

Permalink
Merge pull request #4 from studyplus/bugfix/crash_bottom_tab
Browse files Browse the repository at this point in the history
下タブのidが見つからない場合のクラッシュを避ける
  • Loading branch information
koji-1009 authored May 29, 2019
2 parents 7ddd559 + b4dfaf9 commit ba700ff
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 ba700ff

Please sign in to comment.