Skip to content

Commit

Permalink
Analysis: Resolve non exhaustive when statements when warning
Browse files Browse the repository at this point in the history
Warning Message: "Non exhaustive 'when' statements on enum will be
prohibited in 1.7, add 'ADD_MEDIA_COLLAPSE', 'ADD_MEDIA_EXPAND',
'HIGHLIGHT', 'UNORDERED_LIST', 'ORDERED_LIST', 'TASK_LIST', 'INDENT',
... branches or 'else' branch instead"
  • Loading branch information
ParaskP7 committed Nov 17, 2022
1 parent 56892fd commit 3c54be7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ class AztecToolbar : FrameLayout, IAztecToolbar, OnMenuItemClickListener {
when (toolbarAction) {
ToolbarAction.HEADING -> setHeadingMenu(it)
ToolbarAction.LIST -> setListMenu(it)
else -> Unit // Do nothing
}
if (!hasCustomLayout) {
it.setBackgroundDrawableRes(toolbarAction.buttonDrawableRes)
Expand Down

0 comments on commit 3c54be7

Please sign in to comment.