Fix notifyPositionInRoot and onLayout order in GLView

This commit is contained in:
seven332 committed 2016-02-23 14:08:05 +08:00
1 parent 570cd97236
commit 2c8b56c3bb
1 file changed
+1 -1
@@ -665,8 +665,8 @@ public class GLView implements TouchOwner {
boolean sizeChanged = setBounds(left, top, right, bottom);
final boolean forceLayout = (mViewFlags & FLAG_LAYOUT_REQUESTED) == FLAG_LAYOUT_REQUESTED;
if (sizeChanged || forceLayout) {
onLayout(sizeChanged, left, top, right, bottom);
notifyPositionInRoot();
onLayout(sizeChanged, left, top, right, bottom);
} else {
dispatchNotifyPositionInRoot();
}