OSDN Git Service

DO NOT MERGE. Don't use visibility flags to determine whether to dismiss Recents...
authorWinson Chung <winsonc@google.com>
Fri, 19 Dec 2014 18:37:55 +0000 (10:37 -0800)
committerWinson Chung <winsonc@google.com>
Thu, 15 Jan 2015 19:27:43 +0000 (11:27 -0800)
commit5675f018681faefeb50c9003bc9e02cd9ce5659d
tree356cd38e56c973c0e52f9eae1fef88e7564cc2a3
parentb018399a3a2762e95126acbe14397eca15bad772
DO NOT MERGE. Don't use visibility flags to determine whether to dismiss Recents. (Bug 18802531)

We can use our normal visibility check to dismiss Recents when the screen is off,
since the system broadcast can occur after the activity is stopped.  We should use
the same mechanism we use to test visibility when launching Recents and just see
if it is the top most activity.

Change-Id: Ib9c01e78fd9221c4fb0ffcc80a01a0c58fb96836
packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java
packages/SystemUI/src/com/android/systemui/recents/Constants.java
packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewTouchHandler.java