Skip to content

Unify API to get context in 4.0+ #227

@codeanticode

Description

@codeanticode

The context can be obtained with surface.getActivity() in regular apps, but this gives null in wallpapers, in which case surface.getComponent() should be used instead. Perhaps there is a way to combine both functions in one surface.getContext().

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions