Skip to content

Commit e84ffe4

Browse files
committed
Rename enable format toolbar method
1 parent 23ed5ae commit e84ffe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class AztecToolbar : FrameLayout, OnMenuItemClickListener {
258258
editor!!.visibility = View.GONE
259259
sourceEditor!!.visibility = View.VISIBLE
260260

261-
enableFormatToolbar(false)
261+
enableFormatButtons(false)
262262
} else {
263263
toggleButton(findViewById(ToolbarAction.HTML.buttonId), false)
264264
showMediaUploadDialog()
@@ -268,7 +268,7 @@ class AztecToolbar : FrameLayout, OnMenuItemClickListener {
268268
editor!!.visibility = View.VISIBLE
269269
sourceEditor!!.visibility = View.GONE
270270

271-
enableFormatToolbar(true)
271+
enableFormatButtons(true)
272272
}
273273
}
274274

@@ -312,7 +312,7 @@ class AztecToolbar : FrameLayout, OnMenuItemClickListener {
312312
return null
313313
}
314314

315-
fun enableFormatToolbar(isEnabled: Boolean) {
315+
fun enableFormatButtons(isEnabled: Boolean) {
316316
ToolbarAction.values().forEach { action ->
317317
if (action == ToolbarAction.HTML) {
318318
toggleButton(findViewById(action.buttonId), !isEnabled)

0 commit comments

Comments
 (0)