OSDN Git Service

Fixing up some logic around excluded tasks
authorWinson Chung <winsonc@google.com>
Fri, 22 Feb 2019 22:10:27 +0000 (14:10 -0800)
committerWinson Chung <winsonc@google.com>
Fri, 22 Mar 2019 21:12:29 +0000 (21:12 +0000)
commitd27300763753eac9be04860aac2b4b821345e8ab
tree353271dc8ed80a3f73f6a2857c90e22481875a33
parent8f8deb20b33725742a38e3bab5234b00d7ca34f7
Fixing up some logic around excluded tasks

- We already check for the excluded task flag in isInVisibleRange, so we
  should handle skipping that check in there. This fixes the issue where
  an excluded task behind a non-visible task would still fail to show
  even if it was the last visible task.

Bug: 125475435
Test: atest WmTests:RecentTasksTest
Change-Id: I26e79197c3d2bda30f597dd7d4fa879784f14dc8
services/core/java/com/android/server/wm/RecentTasks.java
services/tests/wmtests/src/com/android/server/wm/RecentTasksTest.java