minor code style update

This commit is contained in:
Tibor Kaputa 2023-08-23 22:55:22 +02:00 committed by GitHub
parent 802d9921ca
commit a023eabfe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,13 +166,13 @@ class InsertOrEditContactActivity : SimpleActivity(), RefreshContactsListener {
contactsFavoritesList.forEachIndexed { index, value ->
if (config.showTabs and value != 0) {
binding.insertEditTabsHolder.newTab().setCustomView(com.simplemobiletools.commons.R.layout.bottom_tablayout_item).apply tab@{
customView
?.let { BottomTablayoutItemBinding.bind(it) }
?.apply {
tabItemIcon.setImageDrawable(getTabIcon(index))
tabItemLabel.text = getTabLabel(index)
binding.insertEditTabsHolder.addTab(this@tab)
}
customView?.let {
BottomTablayoutItemBinding.bind(it)
}?.apply {
tabItemIcon.setImageDrawable(getTabIcon(index))
tabItemLabel.text = getTabLabel(index)
binding.insertEditTabsHolder.addTab(this@tab)
}
}
}
}