Skip to content
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

ContentProvider里面的getContext返回错误 #442

Open
yuanpeiyu opened this issue Jul 18, 2018 · 0 comments
Open

ContentProvider里面的getContext返回错误 #442

yuanpeiyu opened this issue Jul 18, 2018 · 0 comments

Comments

@yuanpeiyu
Copy link

有些应用会在provider的oncreate方法里面调用getContext方法并将返回值强转成app对应的Application,这时候会出错,因为插件app的Provider创建的时候传入的context是ContextImpl而不是application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant