Fix situation where two keyboards could be showing.

fork-5.53.8
Greyson Parrelli 2022-05-13 11:47:57 -04:00 zatwierdzone przez Cody Henthorne
rodzic 6b55cd0128
commit f5777d58fc
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -108,7 +108,7 @@ public class KeyboardAwareLinearLayout extends LinearLayoutCompat {
}
private void updateKeyboardState() {
if (viewInset == 0 && Build.VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) viewInset = getViewInset();
if (viewInset == 0 && Build.VERSION.SDK_INT >= 21) viewInset = getViewInset();
getWindowVisibleDisplayFrame(rect);
@ -137,6 +137,7 @@ public class KeyboardAwareLinearLayout extends LinearLayoutCompat {
if (Build.VERSION.SDK_INT >= 23 && getRootWindowInsets() != null) {
int bottomInset;
WindowInsets windowInsets = getRootWindowInsets();
if (Build.VERSION.SDK_INT >= 30) {
bottomInset = windowInsets.getInsets(WindowInsets.Type.navigationBars()).bottom;
} else {

Wyświetl plik

@ -1169,6 +1169,9 @@ public class ConversationParentFragment extends Fragment
@Override
public void onKeyboardShown() {
inputPanel.onKeyboardShown();
if (emojiDrawerStub.resolved() && emojiDrawerStub.get().isShowing()) {
emojiDrawerStub.get().hide(true);
}
}
@Subscribe(threadMode = ThreadMode.MAIN)