OSDN Git Service

Don't make home stack visible if starting activity isn't translucent
authorWale Ogunwale <ogunwale@google.com>
Fri, 4 Mar 2016 18:27:32 +0000 (10:27 -0800)
committerWale Ogunwale <ogunwale@google.com>
Sun, 6 Mar 2016 03:18:30 +0000 (19:18 -0800)
commit8051c5c89060906f5a3a1ca4adb3b53bb423e56b
tree94fa1d187ca2f16cf63c53c2b15b8a8789056395
parent10b6e07717f2cd80952200ddb6dabe20052e9eea
Don't make home stack visible if starting activity isn't translucent

We allow the home stack to be visible right behind the fullscreen
stack if all the activities fullscreen stack are translucent and
visible. However, if we are starting an acitvity it isn't visible
yet so our check for translucent activities in the fullscreen
stack will return true since there is nothing visible. This will
cause the home stack to the visible and the visiblilty of its app
token set to true in window manager and it been factored into the
transition animation.

In addition to checking if the activity is visible, we now also
check if it is the starting activity when trying to determine if
the stack is translucent.

Bug: 27448511
Change-Id: Icbbd57c0632cc5389c7ac894800a41f75d4bc450
services/core/java/com/android/server/am/ActivityMetricsLogger.java
services/core/java/com/android/server/am/ActivityStack.java
services/core/java/com/android/server/am/ActivityStarter.java