Fix first layout of bottom action bar in RTL.
This commit is contained in:
parent
9de519eb3d
commit
2f3c7097a9
1 changed files with 8 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue