Commit 251f906
[Search] sync SearchBar text and placeholder for contained animations
Previously, the SearchBar placeholder text could be updated independently of the main TextView to handle transitions where SearchView.EditText differed from SearchBar.TextView.
However, for contained animations, having these texts out of sync complicates the translation logic and causes incorrect offset calculations. Since the contained style uses cross-fading, keeping the TextView and placeholder in sync provides a smoother transition without the positioning bugs.
PiperOrigin-RevId: 8816350031 parent bb0f842 commit 251f906
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | | - | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
329 | | - | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| |||
964 | 965 | | |
965 | 966 | | |
966 | 967 | | |
967 | | - | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
968 | 971 | | |
969 | 972 | | |
970 | 973 | | |
| |||
0 commit comments