Moving various common executors to a single location

Change-Id: I44bca49b8adb6fa22c3b48d10f674e42c28d792c
This commit is contained in:
Sunny Goyal committed 2019-08-20 14:36:17 -07:00
1 parent 4fa6f63ffd
commit 6fe3eec95c
59 files changed
+434 -441

No files matched your search

@@ -15,6 +15,8 @@
*/
package com.android.launcher3.util;
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
import android.content.Context;
import android.graphics.Point;
import android.hardware.display.DisplayManager;
@@ -54,7 +56,7 @@ public class DefaultDisplay implements DisplayListener {
mChangeHandler = new Handler(this::onChange);
context.getSystemService(DisplayManager.class)
.registerDisplayListener(this, new Handler(UiThreadHelper.getBackgroundLooper()));
.registerDisplayListener(this, UI_HELPER_EXECUTOR.getHandler());
}
@Override