Implement restoring & correct caching of snapshots
Introduce a retrieval cache that holds the last accessed snapshots, in addition to the cache of the activities that are the top most activtiy of a task that have a running process. Change everything to use an integer id instead of a Task object to work around the issue that some tasks SystemUI might access might not exist in WM yet (not yet restored from recents). Don't put anything in the cache on the SystemUI side, but still retrieve the thumbnails after a task changed event to make sure the cache on the system_server side is fresh. Test: runtest frameworks-services -c com.android.server.wm.TaskSnapshotCacheTest Bug: 31339431 Change-Id: I8e56365459a677735320adaa169da8fb033ceab0
Loading
Please register or sign in to comment