Fix notifyPositionInRoot and onLayout order in GLView
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user