mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Fix keyboard animation when going back from emoji-search.
This commit is contained in:
committed by
jeffrey-signal
parent
559a665831
commit
188f1c52a9
@@ -231,6 +231,7 @@ open class InsetAwareConstraintLayout @JvmOverloads constructor(
|
||||
interface KeyboardStateListener {
|
||||
fun onKeyboardShown()
|
||||
fun onKeyboardHidden()
|
||||
fun onKeyboardAnimationEnded() = Unit
|
||||
}
|
||||
|
||||
interface WindowInsetsListener {
|
||||
@@ -288,6 +289,10 @@ open class InsetAwareConstraintLayout @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
override fun onEnd(animation: WindowInsetsAnimationCompat) {
|
||||
keyboardStateListeners.forEach {
|
||||
it.onKeyboardAnimationEnded()
|
||||
}
|
||||
|
||||
if (overridingKeyboard) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user