commit | baea244a9fadd6fc30c1491085d01e1fe30f8ca4 | [log] [tgz] |
---|---|---|
author | Chet Haase <chet@google.com> | Tue Dec 20 07:08:51 2011 -0800 |
committer | Chet Haase <chet@google.com> | Tue Dec 20 08:59:12 2011 -0800 |
tree | da3b86df4d65347319588cdd83d0d66d5d0acc65 | |
parent | 01583ef715641c8a3ce68269b091e75adbe9335a [diff] |
Fix ViewAnimator.getDisplayedChild() bug Adding a view above the currently displayed child in a ViewAnimator will cause the displayed child index to become stale, because it is not incremented to reflect the new position of the currently displayed view. This fix adds logic to the addView() override to increment the index correctly. Change-Id: I9c756ce51a8e8dcbeef8f0e4fbb3704482c21e9d