tylerbwong / stack

An Android app for browsing Stack Overflow and other Stack Exchange sites.
https://stack.tylerbwong.me
GNU General Public License v3.0
515 stars 35 forks source link

Fix Answer FAB Visibility #53

Closed brittanyberlanga closed 4 years ago

brittanyberlanga commented 4 years ago

Using the viewModel delegate does not make sure the view model is tied to a specific scope. In order to specify child Fragments to use the correct view model, ViewModelProvider needs to be used, otherwise multiple instances will be created.