Little emoji picker correction for older devices

This commit is contained in:
12aw 2024-01-06 20:39:00 +01:00
parent fc7546aeb6
commit a796ebd32b

View file

@ -4292,12 +4292,11 @@ public class ConversationFragment extends XmppFragment
params.height = keyboardHeight - 150;
emojipickerview.setLayoutParams(params);
binding.emojiPicker.setVisibility(VISIBLE);
} else if (activity != null ){
getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
}
if (activity != null && !keyboardOpen && binding.emojiButton.getVisibility() == VISIBLE) {
} else if (activity != null && !keyboardOpen && binding.emojiButton.getVisibility() == VISIBLE) {
binding.emojiPicker.setVisibility(GONE);
binding.keyboardButton.setVisibility(GONE);
} else if (activity != null ) {
getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
}
if (activity != null && activity.xmppConnectionService != null && keyboardOpen && activity.xmppConnectionService.showTextFormatting()) {
showTextFormat(me);