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

Commit b4dfaf9

Browse files
committed
下タブのidが見つからない場合のクラッシュを避ける
1 parent 7ddd559 commit b4dfaf9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • jasper/src/main/java/jp/studyplus/android/app/jasper/internal/bnv

jasper/src/main/java/jp/studyplus/android/app/jasper/internal/bnv/MenuImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ class MenuImpl(
9999
}
100100

101101
override fun hasVisibleItems(): Boolean {
102-
return items.firstOrNull() { it.isVisible } != null
102+
return items.firstOrNull { it.isVisible } != null
103103
}
104104

105105
override fun findItem(id: Int): MenuItem? {
106-
return items.first { it.itemId == id }
106+
return items.firstOrNull { it.itemId == id }
107107
}
108108

109109
override fun size(): Int {

0 commit comments

Comments
 (0)