mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 02:08:40 +00:00
Fix issue where bottom bar padding would only appear on second entry.
This commit is contained in:
committed by
Cody Henthorne
parent
8149c469c8
commit
be3d231fcc
@@ -2324,14 +2324,17 @@ class ConversationFragment :
|
||||
|
||||
val additionalScrollOffset = 54.dp
|
||||
if (isVisible) {
|
||||
bottomActionBar.visibility = View.INVISIBLE
|
||||
ViewUtil.animateIn(bottomActionBar, bottomActionBar.enterAnimation)
|
||||
animationsAllowed = false
|
||||
|
||||
bottomActionBar.viewTreeObserver.addOnGlobalLayoutListener(object : ViewTreeObserver.OnGlobalLayoutListener {
|
||||
override fun onGlobalLayout() {
|
||||
if (bottomActionBar.measuredHeight == 0) {
|
||||
return
|
||||
}
|
||||
|
||||
bottomActionBar.viewTreeObserver.removeOnGlobalLayoutListener(this)
|
||||
|
||||
ViewUtil.animateIn(bottomActionBar, bottomActionBar.enterAnimation)
|
||||
container.hideInput()
|
||||
inputPanel.setHideForSelection(true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user