mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
Hiding tab holder and refreshing fix
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user