mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 20:19:42 +01:00
Fix a crashing issue with autocomplete building
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
f5e30bbfda
commit
5652dca771
@ -459,6 +459,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||||||
AutocompletePresenter<Mention> presenter = new MentionAutocompletePresenter(getApplicationContext(), roomToken);
|
AutocompletePresenter<Mention> presenter = new MentionAutocompletePresenter(getApplicationContext(), roomToken);
|
||||||
AutocompleteCallback<Mention> callback = new MentionAutocompleteCallback();
|
AutocompleteCallback<Mention> callback = new MentionAutocompleteCallback();
|
||||||
|
|
||||||
|
if (mentionAutocomplete != null) {
|
||||||
mentionAutocomplete = Autocomplete.<Mention>on(messageInput)
|
mentionAutocomplete = Autocomplete.<Mention>on(messageInput)
|
||||||
.with(elevation)
|
.with(elevation)
|
||||||
.with(backgroundDrawable)
|
.with(backgroundDrawable)
|
||||||
@ -467,6 +468,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||||||
.with(callback)
|
.with(callback)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onAttach(@NonNull View view) {
|
protected void onAttach(@NonNull View view) {
|
||||||
|
Loading…
Reference in New Issue
Block a user