DescriptionButtonCompat: handle missing StateListAnimator gracefully.
ButtonCompat can crash on custom ROMs, when using a framework like Xposed, and
potentially on future versions of Android, because it assumes that the
Widget.Material.Button style contains a stateListAnimator attribute. This is
actually a dangerous assumption, since a future version of Android could change
Widget.Material.Button.
This CL handles this situation gracefully by simply not using a
StateListAnimator on the button if Widget.Material.Button doesn't contain a
stateListAnimator attribute.
BUG=525511
Committed: https://crrev.com/399439d551c3bd915fe180b8c0f3f8e0078623b5
Cr-Commit-Position: refs/heads/master@{#353454}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|