summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/graphics/DragPreviewProvider.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-10-02 12:45:10 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-10-02 14:50:09 -0700
commit326403e958344751539cefec62ecbc6d28abd2ce (patch)
treef85bf31497e8addcc28542990d897cb234b5fb0d /src/com/android/launcher3/graphics/DragPreviewProvider.java
parentec21a599f4cf68c74a2f7aad6797c0ba6d7409ad (diff)
downloadandroid_packages_apps_Trebuchet-326403e958344751539cefec62ecbc6d28abd2ce.tar.gz
android_packages_apps_Trebuchet-326403e958344751539cefec62ecbc6d28abd2ce.tar.bz2
android_packages_apps_Trebuchet-326403e958344751539cefec62ecbc6d28abd2ce.zip
Moving some calls off the UI thread
This saves ~5ms in onNewIntent Bug: 67305604 Change-Id: Ic97727b1c526e50bd3c8a1d8f511e1d7fd5e05e7
Diffstat (limited to 'src/com/android/launcher3/graphics/DragPreviewProvider.java')
-rw-r--r--src/com/android/launcher3/graphics/DragPreviewProvider.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/graphics/DragPreviewProvider.java b/src/com/android/launcher3/graphics/DragPreviewProvider.java
index 0989921b2..355c231f3 100644
--- a/src/com/android/launcher3/graphics/DragPreviewProvider.java
+++ b/src/com/android/launcher3/graphics/DragPreviewProvider.java
@@ -32,10 +32,10 @@ import android.view.View;
import com.android.launcher3.BubbleTextView;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherAppWidgetHostView;
-import com.android.launcher3.LauncherModel;
import com.android.launcher3.R;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.folder.FolderIcon;
+import com.android.launcher3.util.UiThreadHelper;
import java.nio.ByteBuffer;
@@ -151,7 +151,7 @@ public class DragPreviewProvider {
}
mOutlineGeneratorCallback = new OutlineGeneratorCallback(preview);
- new Handler(LauncherModel.getWorkerLooper()).postAtFrontOfQueue(mOutlineGeneratorCallback);
+ new Handler(UiThreadHelper.getBackgroundLooper()).post(mOutlineGeneratorCallback);
}
protected static Rect getDrawableBounds(Drawable d) {