Merge "Set client invisible immediately for trampoline with window" into udc-dev
This commit is contained in:
@@ -5315,6 +5315,13 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
if (finishing || isState(STOPPED)) {
|
if (finishing || isState(STOPPED)) {
|
||||||
displayContent.mUnknownAppVisibilityController.appRemovedOrHidden(this);
|
displayContent.mUnknownAppVisibilityController.appRemovedOrHidden(this);
|
||||||
}
|
}
|
||||||
|
// Because starting window was transferred, this activity may be a trampoline which has
|
||||||
|
// been occluded by next activity. If it has added windows, set client visibility
|
||||||
|
// immediately to avoid the client getting RELAYOUT_RES_FIRST_TIME from relayout and
|
||||||
|
// drawing an unnecessary frame.
|
||||||
|
if (startingMoved && !firstWindowDrawn && hasChild()) {
|
||||||
|
setClientVisible(false);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!appTransition.isTransitionSet()
|
if (!appTransition.isTransitionSet()
|
||||||
&& appTransition.isReady()) {
|
&& appTransition.isReady()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user