Commit 8729d8a
[SnackBar] Fix maxWidth and maxInlineActionWidth are not applied
We load maxWidth and maxInlineActionWidth style attributes in SnackbarContentLayout, but the snackbar styles are only applied to SnackbarLayout. We need to pass the values to SnackbarContentLayout, as we did for actionTextColorAlpha.
Resolves #781
PiperOrigin-RevId: 4043203391 parent 01c1fc7 commit 8729d8a
File tree
2 files changed
+19
-6
lines changed- lib/java/com/google/android/material/snackbar
2 files changed
+19
-6
lines changedLines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| |||
1131 | 1133 | | |
1132 | 1134 | | |
1133 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
1134 | 1138 | | |
1135 | 1139 | | |
1136 | 1140 | | |
| |||
1158 | 1162 | | |
1159 | 1163 | | |
1160 | 1164 | | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1161 | 1168 | | |
1162 | 1169 | | |
1163 | 1170 | | |
| |||
1268 | 1275 | | |
1269 | 1276 | | |
1270 | 1277 | | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
1271 | 1286 | | |
1272 | 1287 | | |
1273 | 1288 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
| |||
168 | 162 | | |
169 | 163 | | |
170 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
171 | 169 | | |
0 commit comments