diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-06-16 23:44:22 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-06-16 23:44:22 +0200 |
commit | 0f999fdafdf1539baceed0266cf8208376a22f34 (patch) | |
tree | 0337519d28a511c52d7c2479c70c78523c0a1c05 | |
parent | 6f87287282f76d61461fd510a091782e524cff07 (diff) |
fall back to search in other tab on search enter
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/StartConversationActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java index 358c9dff7..06ab237df 100644 --- a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java @@ -183,11 +183,17 @@ public class StartConversationActivity extends XmppActivity implements XmppConne if (contacts.size() == 1) { openConversationForContact((Contact) contacts.get(0)); return true; + } else if (contacts.size() == 0 && conferences.size() == 1) { + openConversationsForBookmark((Bookmark) conferences.get(0)); + return true; } } else { if (conferences.size() == 1) { openConversationsForBookmark((Bookmark) conferences.get(0)); return true; + } else if (conferences.size() == 0 && contacts.size() == 1) { + openConversationForContact((Contact) contacts.get(0)); + return true; } } SoftKeyboardUtils.hideSoftKeyboard(StartConversationActivity.this); |