-
Notifications
You must be signed in to change notification settings - Fork 981
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
找不到getSharedPreferences #45
Comments
基本知道原因了,查找method时是Context 两者是继承关系,context是接口,application是实现,这就很尴尬,后面我想想怎么改比较合理吧 |
希望作者关注下这类问题,好多接口都会这样 |
反馈问题请发上测试代码 |
做了一个简单的兼容,没有抽象 |
测试代码要整理一下,因为上面的改法可以跑通了 |
如图,看上去Application里找不到getSharedPreferences这个方法。目前Application里调试看到只有getPackageManager和getPackageInfo。在哪里加上请指教
The text was updated successfully, but these errors were encountered: