Skip to content

Commit 474bb18

Browse files
committed
refactor #853 Use function reference.
1 parent 61cd5ae commit 474bb18

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • app/src/main/java/jp/toastkid/yobidashi/main/ui

app/src/main/java/jp/toastkid/yobidashi/main/ui/AppBar.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ internal fun AppBar() {
178178

179179
OverflowMenu(
180180
contentViewModel.optionMenus,
181-
contentViewModel::switchTabList
182-
) { activity.finish() }
181+
contentViewModel::switchTabList,
182+
activity::finish
183+
)
183184
}
184185

185186
}

0 commit comments

Comments
 (0)