summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/MainThreadExecutor.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-02-14 15:03:45 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-03-07 13:44:52 -0800
commitb265ba74490d8ded8659db0d63f50c471d793802 (patch)
tree8df180bf85b621dc380b9723e769333eebe819ff /src/com/android/launcher3/MainThreadExecutor.java
parent7adec0ea5b7505bcf6c689e500bfd579f4083f15 (diff)
downloadandroid_packages_apps_Trebuchet-b265ba74490d8ded8659db0d63f50c471d793802.tar.gz
android_packages_apps_Trebuchet-b265ba74490d8ded8659db0d63f50c471d793802.tar.bz2
android_packages_apps_Trebuchet-b265ba74490d8ded8659db0d63f50c471d793802.zip
Removing DeferredHandler and using a simple Handler to post callbacks
DeferredHandler was added when we were posting each icon separately, to prevent starvation. But since then we have moved to binding batct items during bind. Also fixing waitForIdle not waiting the second time. waitForIdle was using a global variable to maintain state, and was not waiting properly when its called the second time before binding deep shortcuts Original Change-Id: I9c1289cb3bfb74f86e53ec7ac6dd76bb39666b2d Change-Id: I9e6b3ae65fbd3aec3a46092efc5249c4525efedf
Diffstat (limited to 'src/com/android/launcher3/MainThreadExecutor.java')
-rw-r--r--src/com/android/launcher3/MainThreadExecutor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/MainThreadExecutor.java b/src/com/android/launcher3/MainThreadExecutor.java
index 4ca0a59d8..509468233 100644
--- a/src/com/android/launcher3/MainThreadExecutor.java
+++ b/src/com/android/launcher3/MainThreadExecutor.java
@@ -18,14 +18,14 @@ package com.android.launcher3;
import android.os.Looper;
-import com.android.launcher3.util.LooperExecuter;
+import com.android.launcher3.util.LooperExecutor;
/**
* An executor service that executes its tasks on the main thread.
*
* Shutting down this executor is not supported.
*/
-public class MainThreadExecutor extends LooperExecuter {
+public class MainThreadExecutor extends LooperExecutor {
public MainThreadExecutor() {
super(Looper.getMainLooper());