fall back to search in other tab on search enter

This commit is contained in:
Daniel Gultsch 2018-06-10 19:48:30 +02:00
parent 10cee98913
commit 37c3bdb8bf
1 changed files with 6 additions and 0 deletions

View File

@ -181,11 +181,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);