diff options
| author | Chet Haase <chet@google.com> | 2013-09-04 10:21:46 -0700 |
|---|---|---|
| committer | Chet Haase <chet@google.com> | 2013-09-04 11:28:57 -0700 |
| commit | cb96db8d144a01aa41ec396247c548d8aa496131 (patch) | |
| tree | 3ed1b2fad57ed8a8b94b1acb49dcee891c1747ea /core/java/android/view/ViewGroup.java | |
| parent | 52c10e94d98e32d977bfd4021136f4c9fa571bd6 (diff) | |
Perform layout and invalidation after bringChildToFront()
Previously, calls to ViewGroup.bringChildToFront() or View.bringToFront()
would need to be followed by calls to requestLayout() and invalidate()
to force the container to redraw with the new child ordering. This
change calls requestLayout() and invalidate() automatically.
Issue #8667065 bringtoTop does not work
Change-Id: Id37ce7a64dead82119e49f7a1b28385cf0d1f20d
Diffstat (limited to 'core/java/android/view/ViewGroup.java')
| -rw-r--r-- | core/java/android/view/ViewGroup.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index 03a9c370784b..2d75b063ca74 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -1123,6 +1123,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager removeFromArray(index); addInArray(child, mChildrenCount); child.mParent = this; + requestLayout(); + invalidate(); } } |
