OSDN Git Service

Skip task overlay in calcuating task description
authorWinson Chung <winsonc@google.com>
Thu, 31 May 2018 04:13:25 +0000 (21:13 -0700)
committerWinson Chung <winsonc@google.com>
Thu, 31 May 2018 16:10:17 +0000 (16:10 +0000)
commit80f80dbbdd394a2a1103d89a6b081261c0907274
tree992aedcdf948eb1a7a93c06e249dca466d494dfa
parentf04b6c8d777691343fa883f60245962be777a7fb
Skip task overlay in calcuating task description

- When a PiP task is dismissed with the PiP menu activity showing, we
  use the wrong task description (belonging to the menu activity) to draw
  the app theme snapshot. The task overlay is only used from SysUI to
  overlay an activity on top of the task, and should not be considered in
  the calculation for the task description for the task.

Bug: 77964409
Test: Manual, launch Maps in PiP, dismiss and then open overview

Change-Id: I2d537b9fdd19eb69a8dc20f15ac5b263584d2fad
services/core/java/com/android/server/am/TaskRecord.java