Skip to content

[Button] performClick() behavior when MaterialButton is disabled #5019

@pubiqq

Description

@pubiqq

Components such as android.widget.Button and android.widget.CheckBox perform click actions when the performClick method is called, even if they're disabled. I see no reason why the MaterialButton should be any different.

Also, the original implementation is incorrect because clicking on the disabled button works inconsistently; it doesn't invoke the toggle() method, but still performs click actions.

Originally posted by @pubiqq in #4967

--

Material Library version: 1.14.0-alpha10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions