OSDN Git Service

Update the cache with the snapshot requested during recents animation
authorWinson Chung <winsonc@google.com>
Thu, 1 Feb 2018 19:41:43 +0000 (11:41 -0800)
committerWinson Chung <winsonc@google.com>
Wed, 14 Feb 2018 01:33:39 +0000 (01:33 +0000)
commit23aa7b11047439c404d19a9b6cc20e73a41488b1
tree44217016e519cf64fdacefc95f9476df2cb38388
parent759148c6a79e062f22b3ca174c5a5b2c82c19999
Update the cache with the snapshot requested during recents animation

- When a screenshot is requested by the recents animation runner, update
  the task snapshot cache to ensure that the same snapshot is used for the
  next starting animation. In doing so, we also need to prevent the default
  logic from taking a new snapshot when the app is hidden at the end of the
  recents animation.

Bug: 70180552
Test: atest TaskSnapshotControllerTest
Change-Id: Ib081ba324587b0719edb370e3c253c86f5e6c1b6
services/core/java/com/android/server/wm/RecentsAnimationController.java
services/core/java/com/android/server/wm/TaskSnapshotController.java
services/tests/servicestests/src/com/android/server/wm/TaskSnapshotControllerTest.java