OSDN Git Service

Only show launcher for the bottom activity in a task
authorCraig Mautner <cmautner@google.com>
Fri, 20 Sep 2013 00:19:51 +0000 (17:19 -0700)
committerThe Android Automerger <android-build@google.com>
Fri, 20 Sep 2013 21:39:20 +0000 (14:39 -0700)
commit0fb359744a98ff5656abf7f776193e1811e54bc4
tree6b026abde8e945ab4647bb878893c17f3b2272c9
parent4d71aa79ac7d262648849dfa6f87852cbdaa0e65
Only show launcher for the bottom activity in a task

When transitioning from activity-over-launcher to task-over-launcher
ensureActivitiesVisibleLocked() was too aggressive in showing the
launcher. If there were any non-fullscreen activities in a task that
sits over the launcher then the launcher would be shown.

This fix adds a test to make sure the launcher will only be shown if
the bottommost activity in such a task is non-fullscreen.

Fixes bug 10840919.

Change-Id: I5dcd63be3fa2865ae38cbb921332937dfa4b5d47
services/java/com/android/server/am/ActivityStack.java