Skip to content

Commit 3c54be7

Browse files
committed
Analysis: Resolve non exhaustive when statements when warning
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"
1 parent 56892fd commit 3c54be7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/toolbar/AztecToolbar.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,7 @@ class AztecToolbar : FrameLayout, IAztecToolbar, OnMenuItemClickListener {
791791
when (toolbarAction) {
792792
ToolbarAction.HEADING -> setHeadingMenu(it)
793793
ToolbarAction.LIST -> setListMenu(it)
794+
else -> Unit // Do nothing
794795
}
795796
if (!hasCustomLayout) {
796797
it.setBackgroundDrawableRes(toolbarAction.buttonDrawableRes)

0 commit comments

Comments
 (0)