minor code style update
This commit is contained in:
parent
802d9921ca
commit
a023eabfe6
1 changed files with 7 additions and 7 deletions
|
|
@ -166,13 +166,13 @@ class InsertOrEditContactActivity : SimpleActivity(), RefreshContactsListener {
|
||||||
contactsFavoritesList.forEachIndexed { index, value ->
|
contactsFavoritesList.forEachIndexed { index, value ->
|
||||||
if (config.showTabs and value != 0) {
|
if (config.showTabs and value != 0) {
|
||||||
binding.insertEditTabsHolder.newTab().setCustomView(com.simplemobiletools.commons.R.layout.bottom_tablayout_item).apply tab@{
|
binding.insertEditTabsHolder.newTab().setCustomView(com.simplemobiletools.commons.R.layout.bottom_tablayout_item).apply tab@{
|
||||||
customView
|
customView?.let {
|
||||||
?.let { BottomTablayoutItemBinding.bind(it) }
|
BottomTablayoutItemBinding.bind(it)
|
||||||
?.apply {
|
}?.apply {
|
||||||
tabItemIcon.setImageDrawable(getTabIcon(index))
|
tabItemIcon.setImageDrawable(getTabIcon(index))
|
||||||
tabItemLabel.text = getTabLabel(index)
|
tabItemLabel.text = getTabLabel(index)
|
||||||
binding.insertEditTabsHolder.addTab(this@tab)
|
binding.insertEditTabsHolder.addTab(this@tab)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue