In the onStart method I onStart my keyboard:
if (allTags.isEmpty()) { Utils.showSystemKeyboard(true, tagNameInputView); } But when you exit the application with the home button, the keyboard remains on the display. How to properly destroy all unnecessary elements, in this case, the keyboard. I try this, but on the Chinese phone the keyboard does not remove, unlike nexus'a.
@Override public void onStop() { super.onStop(); Utils.hideSystemKeyboard(tagNameInputView); } Keyboard hide method:
public static void hideSystemKeyboard(EditText view) { if (view != null) { ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)) .hideSoftInputFromWindow(view.getWindowToken(), 0); } }