Skip to content

Unify API to get context in 4.0+ #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
codeanticode opened this issue Jun 12, 2016 · 0 comments
Closed

Unify API to get context in 4.0+ #227

codeanticode opened this issue Jun 12, 2016 · 0 comments
Assignees
Milestone

Comments

@codeanticode
Copy link
Contributor

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().

@codeanticode codeanticode added this to the 4.0-beta2 milestone Jun 12, 2016
@codeanticode codeanticode self-assigned this Jun 12, 2016
codeanticode added a commit that referenced this issue Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant