mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Simplifying hideKeyboardAsync method
Bug: 246000321 Test: Presubmit Change-Id: I2851c49b61b662d4a5b7cd0a863f690fd74a8bd0 Merged-In: I2851c49b61b662d4a5b7cd0a863f690fd74a8bd0
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
package com.android.launcher3;
|
||||
|
||||
import static com.android.launcher3.logging.KeyboardStateManager.KeyboardState.SHOW;
|
||||
import static com.android.launcher3.util.UiThreadHelper.hideKeyboardAsync;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
@@ -90,7 +89,7 @@ public class ExtendedEditText extends EditText {
|
||||
}
|
||||
|
||||
public void hideKeyboard() {
|
||||
hideKeyboardAsync(ActivityContext.lookupContext(getContext()), getWindowToken());
|
||||
ActivityContext.lookupContext(getContext()).hideKeyboard();
|
||||
clearFocus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user