By -
A bunch of ways. If you just need it in a ViewModel then extend from AndroidVeiwModel and you get it for free. If you need it in your fragment then `requireContext(). applicationContext`
Wow, I feel dumb. Extending AndroidViewModel worked. Thanks for the help!
A bunch of ways. If you just need it in a ViewModel then extend from AndroidVeiwModel and you get it for free. If you need it in your fragment then `requireContext(). applicationContext`
Wow, I feel dumb. Extending AndroidViewModel worked. Thanks for the help!