minor code style update

This commit is contained in:
Tibor Kaputa 2023-08-23 22:58:21 +02:00 committed by GitHub
parent a023eabfe6
commit 09c42dee02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -417,14 +417,14 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
tabsList.forEachIndexed { index, value -> tabsList.forEachIndexed { index, value ->
if (config.showTabs and value != 0) { if (config.showTabs and value != 0) {
binding.mainTabsHolder.newTab().setCustomView(com.simplemobiletools.commons.R.layout.bottom_tablayout_item).apply tab@{ binding.mainTabsHolder.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)
AutofitHelper.create(tabItemLabel) AutofitHelper.create(tabItemLabel)
binding.mainTabsHolder.addTab(this@tab) binding.mainTabsHolder.addTab(this@tab)
} }
} }
} }
} }