setyotontowi / menko

a to do list app using Kotlin, Dagger, MVVM, and Room
1 stars 0 forks source link

Update checklist on history #57

Closed setyotontowi closed 2 years ago

setyotontowi commented 3 years ago

When update checklist on history, do not notifydataset. the position refresh to the top.

setyotontowi commented 2 years ago

Update 1 between DayFragment and HistoryFragment delete and update label, they call same method on viewmodel. But on DayFragment, they can update the view simultaneously. While on History, they can't

Task with label observed when item in history changed perhaps triggered as in day with page 1

setyotontowi commented 2 years ago

What have I learned

livedata on room when updated, also observing jt changes, then you don't have to get all data again when update