UseHover / Stax

Africa's only open source payment app. Automates USSD transactions.
https://usehover.com
Apache License 2.0
92 stars 74 forks source link

Injecting viewmodel to abstract class fix #1017

Closed CalebKL closed 1 year ago

CalebKL commented 1 year ago

This PR fixes injecting loginviewmodel to the AbstractGoogleAuthActivity. Instead of injecting the viewmodel directly to the class, I added an abstract method provideLoginViewModel to the abstract class so I can use it to get an instance of the loginviewmodel on the MainActivity.

Also, I annotated the viewmodels with @HiltViewModel.