aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-23 20:43:30 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-23 20:43:30 -0700
commit9d0c9e0f8c836b5a054fde95f71184bad0833fef (patch)
tree82f03adaf3199951bf8b0903b0219ddbe405b10e /subsonic-android/src/github/daneren2005
parent0154383969c82187933032e4343ce5661d910c39 (diff)
downloaddsub-9d0c9e0f8c836b5a054fde95f71184bad0833fef.tar.gz
dsub-9d0c9e0f8c836b5a054fde95f71184bad0833fef.tar.bz2
dsub-9d0c9e0f8c836b5a054fde95f71184bad0833fef.zip
Hide keyboard after submitting message
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/ChatFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/ChatFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/ChatFragment.java
index 8fba2526..35470721 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/ChatFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/ChatFragment.java
@@ -1,5 +1,6 @@
package github.daneren2005.dsub.fragments;
+import android.content.Context;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -12,6 +13,7 @@ import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.view.inputmethod.EditorInfo;
+import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ListView;
@@ -146,6 +148,8 @@ public class ChatFragment extends SubsonicFragment {
if (!Util.isNullOrWhiteSpace(message)) {
messageEditText.setText("");
+ InputMethodManager mgr = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
+ mgr.hideSoftInputFromWindow(messageEditText.getWindowToken(), 0);
BackgroundTask<Void> task = new TabBackgroundTask<Void>(this) {
@Override