~singpolyma/cheogram-android

37c3bdb8bfb9b02e479da6622cab9b5e2af7a2d5 — Daniel Gultsch 6 years ago 10cee98
fall back to search in other tab on search enter
1 files changed, 6 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java
M src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java => src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java +6 -0
@@ 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);