fall back to search in other tab on search enter
This commit is contained in:
parent
10cee98913
commit
37c3bdb8bf
|
@ -181,11 +181,17 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
|
||||||
if (contacts.size() == 1) {
|
if (contacts.size() == 1) {
|
||||||
openConversationForContact((Contact) contacts.get(0));
|
openConversationForContact((Contact) contacts.get(0));
|
||||||
return true;
|
return true;
|
||||||
|
} else if (contacts.size() == 0 && conferences.size() == 1) {
|
||||||
|
openConversationsForBookmark((Bookmark) conferences.get(0));
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (conferences.size() == 1) {
|
if (conferences.size() == 1) {
|
||||||
openConversationsForBookmark((Bookmark) conferences.get(0));
|
openConversationsForBookmark((Bookmark) conferences.get(0));
|
||||||
return true;
|
return true;
|
||||||
|
} else if (conferences.size() == 0 && contacts.size() == 1) {
|
||||||
|
openConversationForContact((Contact) contacts.get(0));
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SoftKeyboardUtils.hideSoftKeyboard(StartConversationActivity.this);
|
SoftKeyboardUtils.hideSoftKeyboard(StartConversationActivity.this);
|
||||||
|
|
Loading…
Reference in New Issue