[chats] also hide emoji panel if hide keyboard on scroll enabled

This commit is contained in:
immat0x1
2023-02-26 04:46:54 +05:00
parent ea4f190a4d
commit 7238a6cfdc

View File

@@ -5508,7 +5508,13 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
wasManualScroll = true;
scrollingChatListView = true;
} else if (newState == RecyclerView.SCROLL_STATE_DRAGGING) {
if (ExteraConfig.hideKeyboardOnScroll) AndroidUtilities.hideKeyboard(getParentActivity().getCurrentFocus());
if (ExteraConfig.hideKeyboardOnScroll) {
if (isKeyboardVisible()) {
AndroidUtilities.hideKeyboard(getParentActivity().getCurrentFocus());
} else if (chatActivityEnterView != null) {
chatActivityEnterView.hidePopup(false);
}
}
pollHintCell = null;
wasManualScroll = true;
scrollingFloatingDate = true;