mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
hide the viewpager tabs if only one is visible
This commit is contained in:
@ -327,6 +327,8 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
||||
main_tabs_holder.addTab(main_tabs_holder.newTab().setIcon(getTabIcon(index)), index - skippedTabs, config.lastUsedViewPagerPage == index - skippedTabs)
|
||||
}
|
||||
}
|
||||
|
||||
main_tabs_holder.beVisibleIf(skippedTabs < 2)
|
||||
}
|
||||
|
||||
private fun getTabIcon(position: Int) = resources.getDrawable(when (position) {
|
||||
|
Reference in New Issue
Block a user