[Android] ChipView applies state changes to sub labels
The chip view needs to react to certain state changes with changed text colors. Since the secondary label is added lazily, it needs to check for these states explicitly. Once views that are part of the hierarchy they will receive most of the state changes (e.g. a setSelected on ChipView will apply to both TextViews). For some reason, setEnabled wasn't applied to children by default but it is strictly necessary in order to automatically select the correct text appearance. Additional fix: ensure there is an appropriate disabled state color. Screenshots are in the linked bug. Bug: 989960 Change-Id: Ic63d09f22c22af485d060d03d6ba6c20ef233bf1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1771613 Commit-Queue: Friedrich [CET] <fhorschig@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#691070}
Showing
Please register or sign in to comment