Skip to content

Commit

Permalink
Fix ButtonPresenter crash (#7530)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored May 24, 2022
1 parent 65c1367 commit cff5dbb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ open class ButtonPresenter(private val context: Context, private val button: But
iconResolver.resolve(button) { icon: Drawable ->
setIconColor(icon)
toolbar.setNavigationOnClickListener { onPress(button) }
toolbar.navigationIcon = null
toolbar.navigationIcon = icon
setLeftButtonTestId(toolbar)
if (button.accessibilityLabel.hasValue()) toolbar.navigationContentDescription = button.accessibilityLabel.get()
Expand Down

0 comments on commit cff5dbb

Please sign in to comment.