Commit 035a1fc
committed
View pressed state dispatching tweaks
Bugs 6075823, 6050563
Revise pressed state dispatch logic:
Only propagate pressed state to non-clickable views. This should
eliminate the "double glow" problem in some list items where a
clickable child button has a secondary glow along with a clickable
parent. This only applies to setPressed(true) calls; setPressed(false)
must propagate. Don't early-out in setPressed to support this use
case.
Change-Id: Ibbe2309f5030282fad8d23e4a9bc4616b3f5dc7c1 parent 41c31ef commit 035a1fc
2 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5048 | 5048 | | |
5049 | 5049 | | |
5050 | 5050 | | |
5051 | | - | |
5052 | | - | |
5053 | | - | |
| 5051 | + | |
5054 | 5052 | | |
5055 | 5053 | | |
5056 | 5054 | | |
5057 | 5055 | | |
5058 | 5056 | | |
5059 | 5057 | | |
5060 | | - | |
| 5058 | + | |
| 5059 | + | |
| 5060 | + | |
| 5061 | + | |
5061 | 5062 | | |
5062 | 5063 | | |
5063 | 5064 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2770 | 2770 | | |
2771 | 2771 | | |
2772 | 2772 | | |
2773 | | - | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
2774 | 2780 | | |
2775 | 2781 | | |
2776 | 2782 | | |
| |||
0 commit comments