mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-29 00:14:12 +01:00
Fix crash
This commit is contained in:
parent
3dbe1d2dc8
commit
996dd70a50
1 changed files with 2 additions and 2 deletions
|
@ -2034,7 +2034,7 @@ public class ConversationFragment extends XmppFragment
|
|||
return true;
|
||||
});
|
||||
|
||||
if (activity.xmppConnectionService.getBooleanPreference("message_autocomplete", R.bool.message_autocomplete)) {
|
||||
if (activity != null && activity.xmppConnectionService != null && activity.xmppConnectionService.getBooleanPreference("message_autocomplete", R.bool.message_autocomplete)) {
|
||||
Autocomplete.<MucOptions.User>on(binding.textinput)
|
||||
.with(activity.getDrawable(R.drawable.input_bubble_light))
|
||||
.with(new CharPolicy('@'))
|
||||
|
@ -3312,7 +3312,7 @@ public class ConversationFragment extends XmppFragment
|
|||
}
|
||||
|
||||
private void updateChatBG() {
|
||||
if (activity != null) {
|
||||
if (activity != null && conversation != null && conversation.getUuid() != null) {
|
||||
if (activity.unicoloredBG()) {
|
||||
binding.conversationsFragment.setBackgroundResource(0);
|
||||
binding.conversationsFragment.setBackgroundColor(StyledAttributes.getColor(activity, R.attr.color_background_tertiary));
|
||||
|
|
Loading…
Add table
Reference in a new issue