Moving some calls off the UI thread
This saves ~5ms in onNewIntent Bug: 67305604 Change-Id: Ic97727b1c526e50bd3c8a1d8f511e1d7fd5e05e7
This commit is contained in:
@@ -27,7 +27,6 @@ import android.view.HapticFeedbackConstants;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
|
||||
import com.android.launcher3.DragSource;
|
||||
import com.android.launcher3.DropTarget;
|
||||
@@ -39,6 +38,7 @@ import com.android.launcher3.accessibility.DragViewStateAnnouncer;
|
||||
import com.android.launcher3.util.ItemInfoMatcher;
|
||||
import com.android.launcher3.util.Thunk;
|
||||
import com.android.launcher3.util.TouchController;
|
||||
import com.android.launcher3.util.UiThreadHelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -138,8 +138,7 @@ public class DragController implements DragDriver.EventListener, TouchController
|
||||
}
|
||||
|
||||
// Hide soft keyboard, if visible
|
||||
mLauncher.getSystemService(InputMethodManager.class)
|
||||
.hideSoftInputFromWindow(mWindowToken, 0);
|
||||
UiThreadHelper.hideKeyboardAsync(mLauncher, mWindowToken);
|
||||
|
||||
mOptions = options;
|
||||
if (mOptions.systemDndStartPoint != null) {
|
||||
|
||||
Reference in New Issue
Block a user