Merge "Move win.skipLayout into policy.layoutWindowLw"
This commit is contained in:
@@ -808,7 +808,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
||||
};
|
||||
|
||||
private final Consumer<WindowState> mPerformLayout = w -> {
|
||||
if (w.mLayoutAttached || w.skipLayout()) {
|
||||
if (w.mLayoutAttached) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -866,7 +866,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
||||
};
|
||||
|
||||
private final Consumer<WindowState> mPerformLayoutAttached = w -> {
|
||||
if (!w.mLayoutAttached || w.skipLayout()) {
|
||||
if (!w.mLayoutAttached) {
|
||||
return;
|
||||
}
|
||||
if (DEBUG_LAYOUT) Slog.v(TAG, "2ND PASS " + w + " mHaveFrame=" + w.mHaveFrame
|
||||
|
||||
@@ -1494,6 +1494,9 @@ public class DisplayPolicy {
|
||||
* @param displayFrames The display frames.
|
||||
*/
|
||||
public void layoutWindowLw(WindowState win, WindowState attached, DisplayFrames displayFrames) {
|
||||
if (win.skipLayout()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// This window might be in the simulated environment.
|
||||
// We invoke this to get the proper DisplayFrames.
|
||||
|
||||
Reference in New Issue
Block a user