Removing number of threads used in background execution
to prevent system thrashing Bug: 188541475 Test: Presubmit Change-Id: Iff73abeab813d1b80a1ff85b69723dce0bef8005
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user