Simplifying hideKeyboardAsync method

Bug: 246000321
Test: Presubmit
Change-Id: I2851c49b61b662d4a5b7cd0a863f690fd74a8bd0
Merged-In: I2851c49b61b662d4a5b7cd0a863f690fd74a8bd0
This commit is contained in:
Sunny Goyal
2022-09-09 15:54:10 -07:00
parent b64894b095
commit 8958a7078a
7 changed files with 61 additions and 93 deletions

View File

@@ -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();
}