Hiding tab holder and refreshing fix

This commit is contained in:
Agnieszka C
2021-11-28 12:39:36 +01:00
parent 60760979eb
commit 5874766dd0

View File

@ -306,6 +306,7 @@ class MainActivity : SimpleActivity() {
if (!isAnySelected) {
main_tabs_holder.selectTab(main_tabs_holder.getTabAt(getDefaultTab()))
}
main_tabs_holder.beGoneIf(main_tabs_holder.tabCount == 1)
}
private fun getTabIcon(position: Int): Drawable {
@ -329,8 +330,6 @@ class MainActivity : SimpleActivity() {
viewpager.onGlobalLayout {
refreshFragments()
}
} else {
refreshFragments()
}
}