Merge pull request #216 from TouchInstinct/fix/keyboard_behavior
Fix keyboard behavior detection after recreating activity with opened keyboard
This commit is contained in:
commit
c991526f35
|
|
@ -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