OSDN Git Service

Window can only be fully drawn if app window is not relaunching
authorMatthew Ng <ngmatthew@google.com>
Tue, 18 Apr 2017 20:55:45 +0000 (13:55 -0700)
committerMatthew Ng <ngmatthew@google.com>
Fri, 28 Apr 2017 18:26:56 +0000 (11:26 -0700)
commit498c71dd9dbcf2b13e0beb923a027a302e2cf685
tree8b8a551fd841f98c0e15ed74c39ada249cf1e5d1
parent0a4b7f5a867612fffc14cbc480da306e89ec4892
Window can only be fully drawn if app window is not relaunching

This fixes the glitch of having transitions be calculated incorrectly
when starting new activity when other windows still exist. For example
launcher3 has minus one window exist even if the main activity is
destroyed causing incorrect transition going home. This change only
allows the calculation to occur when the app window is not relaunching.

Test: manual - launch app, rotate screen, go home
Change-Id: I7e323486ee6e05ba4c8704832ca0f9d6e648ac90
Fixes: 36113180
services/core/java/com/android/server/wm/AppWindowToken.java
services/core/java/com/android/server/wm/DisplayContent.java