Skip to content

Commit

Permalink
Merge pull request #222 from wordpress-mobile/issue/5041-disable-tool…
Browse files Browse the repository at this point in the history
…bar-buttons

Issue/5041 disable toolbar buttons
  • Loading branch information
hypest authored Feb 7, 2017
2 parents 2b941d0 + 678154b commit 9401b6e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,14 @@ class AztecToolbar : FrameLayout, OnMenuItemClickListener {
}
}

fun enableFormatButtons(isEnabled: Boolean) {
ToolbarAction.values().forEach { action ->
if (action != ToolbarAction.HTML) {
toggleButtonState(findViewById(action.buttonId), isEnabled)
}
}
}

private fun showMediaUploadDialog() {
if (!isEditorAttached()) return

Expand Down

0 comments on commit 9401b6e

Please sign in to comment.