mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 13:19:02 +00:00
Improve task filtering reliability
This commit is contained in:
parent
942a58bc23
commit
bd07638350
1 changed files with 8 additions and 4 deletions
|
|
@ -72,6 +72,12 @@ class TasksFragment : BaseMainFragment() {
|
|||
|
||||
loadTaskLists()
|
||||
|
||||
return v
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
|
||||
bottomNavigation?.setBadgesHideWhenActive(true)
|
||||
bottomNavigation?.setOnTabSelectListener { tabId ->
|
||||
when (tabId) {
|
||||
|
|
@ -82,8 +88,6 @@ class TasksFragment : BaseMainFragment() {
|
|||
}
|
||||
updateBottomBarBadges()
|
||||
}
|
||||
|
||||
return v
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
|
|
@ -137,12 +141,12 @@ class TasksFragment : BaseMainFragment() {
|
|||
dialog.setTags(user?.tags?.createSnapshot() ?: emptyList())
|
||||
}
|
||||
dialog.setActiveTags(taskFilterHelper.tags)
|
||||
if (activeFragment != null) {
|
||||
/*if (activeFragment != null) {
|
||||
val taskType = activeFragment?.classType
|
||||
if (taskType != null) {
|
||||
dialog.setTaskType(taskType, taskFilterHelper.getActiveFilter(taskType))
|
||||
}
|
||||
}
|
||||
}*/
|
||||
dialog.setListener(object : TaskFilterDialog.OnFilterCompletedListener {
|
||||
|
||||
override fun onFilterCompleted(activeTaskFilter: String?, activeTags: MutableList<String>) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue