Commit dfe6fbf
Avoid race between updating stepper and ViewPager instantiating the steps.
It was assuming the view pager has layed out all the steps at the time that it calls back to its listeners,
but that is not always true (Handler.post() is happening before ViewPager has inserted the step fragments into the
fragment manager).
This solution waits for the ViewPager to complete its layout before updating StepperLayout.1 parent 5cffbfe commit dfe6fbf
File tree
1 file changed
+4
-4
lines changed- material-stepper/src/main/java/com/stepstone/stepper
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
| 316 | + | |
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
319 | | - | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
0 commit comments