Remove TaskViews and Clear All button from RecentsView.
This means that when Overview is being opened it doesn't have to do this work. Also many cancelled pieces of work are received on main because tasks and images are loaded before the TaskViews are removed. Removing TaskViews in onReset avoids this as CoroutineScopes for Views are already cancelled. Bug: 387511656 Flag: com.android.launcher3.enable_refactor_task_thumbnail Test: Checking perfetto traces shows that this reduces the number of continuations on main significantly Test: Manual - opening Overview (from home, app) Test: Manual - splitting an app Test: Manual - overlay presence Test: Manual - splash icon Test: Presubmit (TAPL/image tests etc) Change-Id: I871f3c3931bba733d579583d69bc197ccbcad132
Loading
Please register or sign in to comment