OSDN Git Service

Fix issue with recent task being replaced by task with another windowing mode
authorWinson Chung <winsonc@google.com>
Thu, 19 Apr 2018 21:45:03 +0000 (14:45 -0700)
committerWinson Chung <winsonc@google.com>
Thu, 26 Apr 2018 17:42:24 +0000 (10:42 -0700)
commit27f81888dd5f253e6735d4cd5b5c2996690291e6
tree302a907a95574bf75d4d6b1e3126c45ffa048085
parent694f60005e10d6660d829476b9e1b4582203a611
Fix issue with recent task being replaced by task with another windowing mode

- ag/3762067 is not sufficient to fix the regression from stack id to
  activity type and windowing mode.  When finding a task in the recents
  list to remove and replace with a new task, we need to treat tasks with
  different windowing modes as separate tasks.

Bug: 78291664
Test: Launch play movies, enter PIP and ensure that the main activity task
      still shows in overview

Change-Id: Id1fddfe580bd6bfab8e618930cec82e1e4363ce0
services/core/java/com/android/server/am/RecentTasks.java
services/tests/servicestests/src/com/android/server/am/RecentTasksTest.java