mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-14 18:21:57 +00:00
Set to always populate dailies on user observer
This commit is contained in:
parent
448b5cd7d9
commit
3a0c3a73cc
1 changed files with 2 additions and 9 deletions
|
|
@ -460,17 +460,10 @@ open class TaskRecyclerViewFragment : BaseFragment<FragmentRefreshRecyclerviewBi
|
|||
when (taskType) {
|
||||
TaskType.TODO -> taskFilterHelper.setActiveFilter(TaskType.TODO, Task.FILTER_ACTIVE)
|
||||
TaskType.DAILY -> {
|
||||
val user = mainActivity?.viewModel?.user?.value
|
||||
if (user != null) {
|
||||
if (user.isValid && user.preferences?.dailyDueDefaultView == true) {
|
||||
mainActivity?.viewModel?.user?.observe(mainActivity){
|
||||
if (it?.isValid == true && it.preferences?.dailyDueDefaultView == true) {
|
||||
taskFilterHelper.setActiveFilter(TaskType.DAILY, Task.FILTER_ACTIVE)
|
||||
}
|
||||
} else {
|
||||
mainActivity?.viewModel?.user?.observe(mainActivity){
|
||||
if (it?.isValid == true && it.preferences?.dailyDueDefaultView == true) {
|
||||
taskFilterHelper.setActiveFilter(TaskType.DAILY, Task.FILTER_ACTIVE)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue