OSDN Git Service

Fix visibility of multiple non-fullscreen activities.
authorriddle_hsu <riddle_hsu@htc.com>
Thu, 9 Jan 2014 12:24:34 +0000 (20:24 +0800)
committerriddle_hsu <riddle_hsu@htc.com>
Thu, 9 Jan 2014 12:24:34 +0000 (20:24 +0800)
commit446ef1de8d373c1b017df8d19ebf9a47811fb402
tree9ab44abf5e9b6b149bdc922cabe2f1a277523538
parent76d5cdd820b5d81af8de73180c272d7f8a01caae
Fix visibility of multiple non-fullscreen activities.

Issue detail:
Assume X, Y are non-fullscreen activities.
 a.Home starts an activity X in task A in application stack.
 b.X starts an activity Y in <task A> or <new task B>
 c.Activity X will be invisible.

How to fix:
Because the function "isActivityOverHome" means an activity is able to see home.
But there may have many non-fullscreen activities between the top non-fullscreen activity and home.
If flag "behindFullscreen" is set, those middle activities will be invisible.
So it should only take care from who is adjacent to home.
Then check two flags frontOfTask(task root) and mOnTopOfHome for constraining the condition.

Change-Id: I60bcea304976414e44835a0a38675aae365e9e19
services/java/com/android/server/am/ActivityStack.java [changed mode: 0644->0755]