forked from mirror/monocles_chat_clean
Fix formatting feature crash
This commit is contained in:
parent
fbff81292c
commit
5043cb1dd0
1 changed files with 2 additions and 2 deletions
|
@ -4790,7 +4790,7 @@ public class ConversationFragment extends XmppFragment
|
|||
params.height = keyboardHeight;
|
||||
emojipickerview.setLayoutParams(params);
|
||||
}
|
||||
if (activity.xmppConnectionService != null && isKeyboardVisible && activity.xmppConnectionService.showTextFormatting()) {
|
||||
if (activity != null && activity.xmppConnectionService != null && isKeyboardVisible && activity.xmppConnectionService.showTextFormatting()) {
|
||||
showTextFormat(me);
|
||||
} else {
|
||||
hideTextFormat();
|
||||
|
@ -4828,7 +4828,7 @@ public class ConversationFragment extends XmppFragment
|
|||
params.height = keyboardHeight;
|
||||
emojipickerview.setLayoutParams(params);
|
||||
}
|
||||
if (activity.xmppConnectionService != null && keyboardOpen && activity.xmppConnectionService.showTextFormatting()) {
|
||||
if (activity != null && activity.xmppConnectionService != null && keyboardOpen && activity.xmppConnectionService.showTextFormatting()) {
|
||||
showTextFormat(me);
|
||||
} else {
|
||||
hideTextFormat();
|
||||
|
|
Loading…
Add table
Reference in a new issue