fix keyboard behavior detection after recreating activity with opened keyboard
This commit is contained in:
parent
62127c7a98
commit
c9b160af2f
|
|
@ -59,7 +59,7 @@ abstract class MviKeyboardResizableFragment<NavArgs, State, Action, VM>(
|
|||
|
||||
override fun onPause() {
|
||||
super.onPause()
|
||||
notifyKeyboardHidden()
|
||||
if (isKeyboardVisible) activity.hideSoftInput()
|
||||
if (isHideKeyboardOnBackEnabled) activity.removeOnBackPressedListener(keyboardHideListener)
|
||||
}
|
||||
|
||||
|
|
@ -87,10 +87,5 @@ abstract class MviKeyboardResizableFragment<NavArgs, State, Action, VM>(
|
|||
}
|
||||
}
|
||||
|
||||
private fun notifyKeyboardHidden() {
|
||||
if (isKeyboardVisible) onKeyboardHide()
|
||||
isKeyboardVisible = false
|
||||
}
|
||||
|
||||
}
|
||||
// CPD-ON
|
||||
|
|
|
|||
Loading…
Reference in New Issue