Skip to content

Composable tangleViewModel function misses arguments the underlying activity isn't AppCompatActivity #228

@RBusarow

Description

@RBusarow

When using a Composable inside an Activity (without Fragments), the function checks whether the ViewModelStoreOwner is an AppCompatActivity instead of just a ComponentActivity.

When using Fragments, it checks if the current Activity is an AppCompatActivity instead of just a FragmentActivity.

If these conditions aren't met, then it skips the injected factory and tries to create the ViewModel using the default factory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions