Commit d3b93f7
Remove all layout index adjustments
Summary:
Changelog: [Internal]
# Context Timeline
* ~March 2019 landed D14529038 (I'll be referring to this as "index adjustment fix")
which attempted to fix a reproducible issue with layout animations: P127130177, see Spencer's diff for more context: D14245985
* May 2019 I realized that "index adjustment fix" has a bug in it and attempted to fix with D15485132, but was eventually reverted because of other crashes
* Just recently have been getting tasks related to crashes that are attempting to either remove or add a view that is out of bounds which is caused by invalid index because of the "index adjustment fix".
# What is this diff doing?
I'm removing the "index adjustment fix" because I found that the original layout animation repro, P127130177, no longer repros on latest master with the "index adjustment fix" reverted.
Additionally, I've found a consistent crash in (RN bookmark > Sample Integration App > Relay Sample Friends) of a bad view deletion because of the "index adjustment fix"
Removing the index adjustment fix may have effects elsewhere but it seems better to remove this and go back to what layout animations was doing a year ago than to continue on in this half-baked state.
Reviewed By: JoshuaGross
Differential Revision: D20323928
fbshipit-source-id: ba4a222915add00e98a9936ba2a8efc4006fb8e31 parent 42c1957 commit d3b93f7
File tree
4 files changed
+12
-67
lines changed- ReactAndroid/src/main/java/com/facebook/react/uimanager
4 files changed
+12
-67
lines changedLines changed: 4 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
351 | 349 | | |
352 | 350 | | |
353 | 351 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | 352 | | |
380 | 353 | | |
381 | 354 | | |
382 | 355 | | |
383 | 356 | | |
384 | 357 | | |
385 | | - | |
386 | 358 | | |
387 | 359 | | |
388 | 360 | | |
389 | 361 | | |
390 | 362 | | |
391 | | - | |
392 | | - | |
| 363 | + | |
393 | 364 | | |
394 | 365 | | |
395 | | - | |
396 | | - | |
397 | 366 | | |
398 | 367 | | |
399 | 368 | | |
| |||
446 | 415 | | |
447 | 416 | | |
448 | 417 | | |
449 | | - | |
450 | | - | |
| 418 | + | |
451 | 419 | | |
452 | 420 | | |
453 | 421 | | |
454 | 422 | | |
455 | 423 | | |
456 | 424 | | |
457 | 425 | | |
458 | | - | |
| 426 | + | |
459 | 427 | | |
460 | 428 | | |
461 | 429 | | |
| |||
465 | 433 | | |
466 | 434 | | |
467 | 435 | | |
468 | | - | |
469 | 436 | | |
470 | 437 | | |
471 | 438 | | |
| |||
477 | 444 | | |
478 | 445 | | |
479 | 446 | | |
480 | | - | |
481 | | - | |
482 | 447 | | |
483 | 448 | | |
484 | 449 | | |
| |||
490 | 455 | | |
491 | 456 | | |
492 | 457 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | 458 | | |
497 | 459 | | |
498 | 460 | | |
| |||
513 | 475 | | |
514 | 476 | | |
515 | 477 | | |
516 | | - | |
517 | | - | |
| 478 | + | |
518 | 479 | | |
519 | 480 | | |
520 | 481 | | |
| |||
624 | 585 | | |
625 | 586 | | |
626 | 587 | | |
627 | | - | |
628 | 588 | | |
629 | 589 | | |
630 | 590 | | |
| |||
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | | - | |
| 148 | + | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
| |||
284 | 283 | | |
285 | 284 | | |
286 | 285 | | |
287 | | - | |
288 | | - | |
| 286 | + | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| |||
300 | 298 | | |
301 | 299 | | |
302 | 300 | | |
303 | | - | |
304 | 301 | | |
305 | 302 | | |
306 | 303 | | |
| |||
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | 336 | | |
338 | 337 | | |
339 | 338 | | |
| |||
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
368 | | - | |
369 | 367 | | |
370 | 368 | | |
371 | 369 | | |
| |||
405 | 403 | | |
406 | 404 | | |
407 | 405 | | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
| 406 | + | |
414 | 407 | | |
415 | 408 | | |
416 | 409 | | |
| |||
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
195 | | - | |
196 | | - | |
| 194 | + | |
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
200 | 198 | | |
201 | | - | |
202 | 199 | | |
203 | 200 | | |
204 | 201 | | |
205 | 202 | | |
206 | 203 | | |
207 | | - | |
| 204 | + | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
| |||
685 | 682 | | |
686 | 683 | | |
687 | 684 | | |
688 | | - | |
689 | | - | |
| 685 | + | |
690 | 686 | | |
691 | | - | |
692 | | - | |
| 687 | + | |
693 | 688 | | |
694 | 689 | | |
695 | 690 | | |
| |||
0 commit comments