File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
aztec/src/main/kotlin/org/wordpress/aztec/toolbar Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -854,6 +854,8 @@ class AztecToolbar : FrameLayout, OnMenuItemClickListener {
854854 headingMenu?.setOnDismissListener({
855855 if (getSelectedHeadingMenuItem() == null || getSelectedHeadingMenuItem() == AztecTextFormat .FORMAT_PARAGRAPH ) {
856856 findViewById<ToggleButton >(ToolbarAction .HEADING .buttonId).isChecked = false
857+ } else {
858+ findViewById<ToggleButton >(ToolbarAction .HEADING .buttonId).isChecked = true
857859 }
858860 })
859861 }
@@ -865,6 +867,8 @@ class AztecToolbar : FrameLayout, OnMenuItemClickListener {
865867 listMenu?.setOnDismissListener({
866868 if (getSelectedListMenuItem() == null ) {
867869 findViewById<ToggleButton >(ToolbarAction .LIST .buttonId).isChecked = false
870+ } else {
871+ findViewById<ToggleButton >(ToolbarAction .LIST .buttonId).isChecked = true
868872 }
869873 })
870874 }
You can’t perform that action at this time.
0 commit comments