Merge "Removing number of threads used in background execution to prevent system thrashing" into sc-dev am: 194dcc0fd3 am: 37a9399471

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14626498

Change-Id: I771de61dc92f071e7ddef477429fbb6d8619c52a
This commit is contained in:
Sunny Goyal
2021-05-20 04:40:30 +00:00
committed by Automerger Merge Worker
3 changed files with 8 additions and 20 deletions
@@ -16,7 +16,6 @@
package com.android.quickstep;
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
import static com.android.launcher3.util.Executors.THREAD_POOL_EXECUTOR;
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
import android.view.SurfaceControl;
@@ -102,7 +101,7 @@ public class RecentsAnimationController {
*/
@UiThread
public void removeTaskTarget(@NonNull RemoteAnimationTargetCompat target) {
THREAD_POOL_EXECUTOR.execute(() -> mController.removeTask(target.taskId));
UI_HELPER_EXECUTOR.execute(() -> mController.removeTask(target.taskId));
}
@UiThread