mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Wait until viewpager finished laying out page for checking active filter
This commit is contained in:
parent
b41ef037ae
commit
51953283f1
1 changed files with 3 additions and 1 deletions
|
|
@ -249,7 +249,9 @@ class TasksFragment :
|
|||
override fun onPageSelected(position: Int) {
|
||||
super.onPageSelected(position)
|
||||
bottomNavigation?.selectedPosition = position
|
||||
updateFilterIcon(getTaskTypeFromTabPosition(position))
|
||||
binding?.viewPager?.post {
|
||||
updateFilterIcon(getTaskTypeFromTabPosition(position))
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue