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:
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.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
import android.view.ViewTreeObserver;
|
||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
import android.view.accessibility.AccessibilityManager;
|
import android.view.accessibility.AccessibilityManager;
|
||||||
import android.view.inputmethod.EditorInfo;
|
import android.view.inputmethod.EditorInfo;
|
||||||
|
@ -1256,8 +1257,13 @@ public class Helper {
|
||||||
if (imm == null)
|
if (imm == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Log.i("showKeyboard view=" + view);
|
view.postDelayed(new Runnable() {
|
||||||
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
|
@Override
|
||||||
|
public void run() {
|
||||||
|
Log.i("showKeyboard view=" + view);
|
||||||
|
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
|
||||||
|
}
|
||||||
|
}, 250);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hideKeyboard(final View view) {
|
static void hideKeyboard(final View view) {
|
||||||
|
|
Loading…
Reference in a new issue