OSDN Git Service

Fixed visibility of home stack behind translucent app activity.
authorWale Ogunwale <ogunwale@google.com>
Wed, 9 Mar 2016 23:14:47 +0000 (15:14 -0800)
committerWale Ogunwale <ogunwale@google.com>
Wed, 9 Mar 2016 23:14:47 +0000 (15:14 -0800)
commit56d75cf04df160438dc61fb3e1ca916ea9afc61a
tree67d0679691d0c8bd882dc279b78d5ebb2215950a
parent1c2760401729f9487446be9f069f399ff50059a6
Fixed visibility of home stack behind translucent app activity.

A stack is not considered translucent if their top activity is over the
home stack (i.e the home stack should be visible behind the activity).
However, the home stack will not be made visible behind this stack since
the stack is not translucent.
We now make the stack transulcent if the top activity is over the home
stack and the home stack is directly behind this stack.

Also, cleaned up the isStackTranslucent code some to be more readable.

Bug: 27566650
Change-Id: I4d2fe842d26547ba743ca82a456499038a1eb389
services/core/java/com/android/server/am/ActivityStack.java