Android-Keyboard: Avoid manual keyboard visibility updates on API 30+
Keyboard visibility is now tracked via OnApplyWindowInsetsListener, which provides reliable visibility state changes starting from API level 30. In this setup, manually updating the visibility property is unnecessary and may lead to inconsistencies. Task-number: QTBUG-98984 Pick-to: 6.10 6.9 6.8 Change-Id: Ife80898e20d4038efeae3438fb89b593bdaa056a Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
acbcf992ee
commit
21616e1447
@ -106,10 +106,12 @@ class QtInputConnection extends BaseInputConnection
|
||||
|
||||
private void setClosing(boolean closing)
|
||||
{
|
||||
if (closing)
|
||||
m_view.postDelayed(new HideKeyboardRunnable(), KEYBOARD_CHECK_DELAY_MS);
|
||||
else if (m_qtInputConnectionListener != null)
|
||||
m_qtInputConnectionListener.onSetClosing(false);
|
||||
if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
|
||||
if (closing)
|
||||
m_view.postDelayed(new HideKeyboardRunnable(), KEYBOARD_CHECK_DELAY_MS);
|
||||
else if (m_qtInputConnectionListener != null)
|
||||
m_qtInputConnectionListener.onSetClosing(false);
|
||||
}
|
||||
}
|
||||
|
||||
QtInputConnection(QtEditText targetView, QtInputConnectionListener listener)
|
||||
|
Loading…
x
Reference in New Issue
Block a user