Composable tangleViewModel
function misses arguments the underlying activity isn't AppCompatActivity
#228
Labels
bug
Something isn't working
When using a Composable inside an Activity (without Fragments), the function checks whether the
ViewModelStoreOwner
is anAppCompatActivity
instead of just aComponentActivity
.When using Fragments, it checks if the current Activity is an
AppCompatActivity
instead of just aFragmentActivity
.If these conditions aren't met, then it skips the injected factory and tries to create the ViewModel using the default factory.
The text was updated successfully, but these errors were encountered: