erikjhordan-rey / People-MVVM

Sample created to practice MVVM and DataBinding in Android Applications.
https://erikjhordan-rey.github.io/blog/2015/12/15/ANDROID-databinding-android.html
667 stars 193 forks source link

Holding Context reference in ItemPeopleViewModel #36

Open rayanciz456 opened 2 years ago

rayanciz456 commented 2 years ago

I think we can not hold reference of Context or Activity in ViewModel classes. The ViewModel should not know about View. This approach may cause some code coupling.