Removing number of threads used in background execution

to prevent system thrashing

Bug: 188541475
Test: Presubmit
Change-Id: Iff73abeab813d1b80a1ff85b69723dce0bef8005
This commit is contained in:
Sunny Goyal
2021-05-18 12:15:14 -07:00
parent 5bb515b6cc
commit a76bc76317
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