Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Why do we need a class to be enhanced component to use Background and UiThread #2257

@chpasha

Description

@chpasha

I'm trying to merry AA with android view models and the only problem I cannot solve cleanly is a view models with @background methods and saved state (which requires to have constructor with SavedStateHandle parameter). The EBean annotation will obviously complain about missing constructor with context as only parameter, but actually I don't need either EBean or dependency from context, I just want to use Background/UI which is not possible for now because of the validation that requires any class to be enhanced component. I don't know the internal implementation very good, is there any reasons why @background, @UiThread and maybe some more stuff cannot be used without enhanced components?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions