Merge "Set mEnterAnimationPending to true if a window was not visible" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2b188f8242
@@ -2107,7 +2107,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
if (shouldRelayout) {
|
if (shouldRelayout) {
|
||||||
Trace.traceBegin(TRACE_TAG_WINDOW_MANAGER, "relayoutWindow: viewVisibility_1");
|
Trace.traceBegin(TRACE_TAG_WINDOW_MANAGER, "relayoutWindow: viewVisibility_1");
|
||||||
|
|
||||||
result = win.relayoutVisibleWindow(result, attrChanges, oldVisibility);
|
result = win.relayoutVisibleWindow(result, attrChanges);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
result = createSurfaceControl(outSurfaceControl, result, win, winAnimator);
|
result = createSurfaceControl(outSurfaceControl, result, win, winAnimator);
|
||||||
|
|||||||
@@ -4446,7 +4446,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
|||||||
return !mLastSurfaceInsets.equals(mAttrs.surfaceInsets);
|
return !mLastSurfaceInsets.equals(mAttrs.surfaceInsets);
|
||||||
}
|
}
|
||||||
|
|
||||||
int relayoutVisibleWindow(int result, int attrChanges, int oldVisibility) {
|
int relayoutVisibleWindow(int result, int attrChanges) {
|
||||||
final boolean wasVisible = isVisibleLw();
|
final boolean wasVisible = isVisibleLw();
|
||||||
|
|
||||||
result |= (!wasVisible || !isDrawnLw()) ? RELAYOUT_RES_FIRST_TIME : 0;
|
result |= (!wasVisible || !isDrawnLw()) ? RELAYOUT_RES_FIRST_TIME : 0;
|
||||||
@@ -4466,7 +4466,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
|||||||
mDestroying = false;
|
mDestroying = false;
|
||||||
mWmService.mDestroySurface.remove(this);
|
mWmService.mDestroySurface.remove(this);
|
||||||
}
|
}
|
||||||
if (oldVisibility == View.GONE) {
|
if (!wasVisible) {
|
||||||
mWinAnimator.mEnterAnimationPending = true;
|
mWinAnimator.mEnterAnimationPending = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user