1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Delay showing keyboard

This commit is contained in:
M66B 2021-10-26 10:05:00 +02:00
parent 3d05d2c283
commit 66404d9fc2

View file

@ -68,6 +68,7 @@ import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityManager;
import android.view.inputmethod.EditorInfo;
@ -1256,9 +1257,14 @@ public class Helper {
if (imm == null)
return;
view.postDelayed(new Runnable() {
@Override
public void run() {
Log.i("showKeyboard view=" + view);
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
}
}, 250);
}
static void hideKeyboard(final View view) {
final Context context = view.getContext();