minimize softkeyboard only if it has been in fullscreen mode
This commit is contained in:
parent
204cee4a17
commit
9baa87e5c9
|
@ -232,7 +232,9 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||
if (actionId == EditorInfo.IME_ACTION_SEND) {
|
||||
InputMethodManager imm = (InputMethodManager) v.getContext()
|
||||
.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
|
||||
if (imm.isFullscreenMode()) {
|
||||
imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
|
||||
}
|
||||
sendMessage();
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue