* commit '413c4ba7d46aaaa59de06a75493096d9ce5a6e1b': Perform all layouts within first loop.
This commit is contained in:
@@ -8117,8 +8117,16 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean mInLayout = false;
|
|
||||||
private final void performLayoutAndPlaceSurfacesLocked() {
|
private final void performLayoutAndPlaceSurfacesLocked() {
|
||||||
|
do {
|
||||||
|
mTraversalScheduled = false;
|
||||||
|
performLayoutAndPlaceSurfacesLockedLoop();
|
||||||
|
mH.removeMessages(H.DO_TRAVERSAL);
|
||||||
|
} while (mTraversalScheduled);
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean mInLayout = false;
|
||||||
|
private final void performLayoutAndPlaceSurfacesLockedLoop() {
|
||||||
if (mInLayout) {
|
if (mInLayout) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
throw new RuntimeException("Recursive call!");
|
throw new RuntimeException("Recursive call!");
|
||||||
|
|||||||
Reference in New Issue
Block a user