Fixing issue 3272864
-requestLayout() was being called within onLayout in CellLayout. This resulted in some funky behaviour and the bug above. Change-Id: I76b8fa3c1dc7f08c462d13e2e9dde0d7a74386c0
This commit is contained in:
@@ -949,7 +949,15 @@ public class CellLayout extends ViewGroup implements Dimmable {
|
||||
|
||||
if (lp.animateDrop) {
|
||||
lp.animateDrop = false;
|
||||
((Workspace) mParent).animateViewIntoPosition(child);
|
||||
|
||||
// This call needs to be posted since it results in a requestLayout()
|
||||
// which shouldn't be called from within a layout pass (can cause a bad
|
||||
// state of the tree).
|
||||
post(new Runnable() {
|
||||
public void run() {
|
||||
((Workspace) mParent).animateViewIntoPosition(child);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user