introduce a hideSoftKeyboard() method and use it

This commit is contained in:
Torsten Grote
2016-01-07 19:31:06 -02:00
parent 4460d69a06
commit 0a11c0632f
6 changed files with 14 additions and 8 deletions

View File

@@ -110,7 +110,7 @@ implements OnEditorActionListener, OnClickListener {
}
public boolean onEditorAction(TextView textView, int actionId, KeyEvent e) {
toggleSoftKeyboard();
hideSoftKeyboard(textView);
return true;
}
@@ -126,7 +126,7 @@ implements OnEditorActionListener, OnClickListener {
public void onClick(View view) {
if (view == createForumButton) {
toggleSoftKeyboard();
hideSoftKeyboard(view);
if (!validateName()) return;
createForumButton.setVisibility(GONE);
progress.setVisibility(VISIBLE);