mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 03:05:31 +00:00
Delay showing keyboard
This commit is contained in:
parent
3d05d2c283
commit
66404d9fc2
1 changed files with 8 additions and 2 deletions
|
@ -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,8 +1257,13 @@ public class Helper {
|
|||
if (imm == null)
|
||||
return;
|
||||
|
||||
Log.i("showKeyboard view=" + view);
|
||||
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue