diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-05-02 22:04:20 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-05-02 22:04:20 +0200 |
commit | 08eb4c9837db8c97529cd0345cc48b525237d41e (patch) | |
tree | 847e6dbbd0885f4060697ed299a09b4dedeba9c2 /src/main/java/de/pixart/messenger | |
parent | 3dd18f9567ba42feee0566cf1b22632110251009 (diff) |
show keyboard only on fresh activity
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/SearchActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/SearchActivity.java b/src/main/java/de/pixart/messenger/ui/SearchActivity.java index f7e9ccd68..cc3172670 100644 --- a/src/main/java/de/pixart/messenger/ui/SearchActivity.java +++ b/src/main/java/de/pixart/messenger/ui/SearchActivity.java @@ -115,7 +115,9 @@ public class SearchActivity extends XmppActivity implements TextWatcher, OnSearc searchField.addTextChangedListener(this); searchField.setHint(R.string.search_messages); searchField.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE); - showKeyboard(searchField); + if (term == null) { + showKeyboard(searchField); + } return super.onCreateOptionsMenu(menu); } |