mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 03:35:58 +00:00
Fix first layout of bottom action bar in RTL.
This commit is contained in:
@@ -67,6 +67,8 @@ class SignalBottomActionBar(context: Context, attributeSet: AttributeSet) : Line
|
||||
return
|
||||
}
|
||||
|
||||
val wasLayoutRequested = isLayoutRequested
|
||||
|
||||
val widthDp: Float = ViewUtil.pxToDp(width.toFloat())
|
||||
val minButtonWidthDp = 80
|
||||
val maxButtons: Int = (widthDp / minButtonWidthDp).toInt()
|
||||
@@ -103,6 +105,12 @@ class SignalBottomActionBar(context: Context, attributeSet: AttributeSet) : Line
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
if (wasLayoutRequested) {
|
||||
post {
|
||||
requestLayout()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun bindItem(view: View, item: ActionItem) {
|
||||
|
||||
Reference in New Issue
Block a user