mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 06:55:42 +03:00
Fix a crash
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
a3b674c7e7
commit
91f38323e9
1 changed files with 10 additions and 8 deletions
|
@ -226,7 +226,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||
}
|
||||
}
|
||||
|
||||
getActivity().runOnUiThread(() -> setupMentionAutocomplete());
|
||||
setupMentionAutocomplete();
|
||||
joinRoomWithPassword();
|
||||
}
|
||||
|
||||
|
@ -356,13 +356,15 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||
AutocompletePresenter<Mention> presenter = new MentionAutocompletePresenter(getApplicationContext(), roomToken);
|
||||
AutocompleteCallback<Mention> callback = new MentionAutocompleteCallback();
|
||||
|
||||
mentionAutocomplete = Autocomplete.<Mention>on(messageInput.getInputEditText())
|
||||
.with(elevation)
|
||||
.with(backgroundDrawable)
|
||||
.with(new CharPolicy('@'))
|
||||
.with(presenter)
|
||||
.with(callback)
|
||||
.build();
|
||||
if (messageInput != null && messageInput.getInputEditText() != null) {
|
||||
mentionAutocomplete = Autocomplete.<Mention>on(messageInput.getInputEditText())
|
||||
.with(elevation)
|
||||
.with(backgroundDrawable)
|
||||
.with(new CharPolicy('@'))
|
||||
.with(presenter)
|
||||
.with(callback)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue