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

0.4版首次初始化Adapter数据为空时会报空对象 #20

Open
xjh1994 opened this issue Mar 17, 2016 · 0 comments
Open

0.4版首次初始化Adapter数据为空时会报空对象 #20

xjh1994 opened this issue Mar 17, 2016 · 0 comments

Comments

@xjh1994
Copy link

xjh1994 commented Mar 17, 2016

虽然说最佳实践是数据加载完再初始化Adapter,但难免出现数据为空的情况,建议修复这个问题,在UltimateViewAdapter的getItemViewType()方法中,当getAdapterItemCount() == 0时,加入判断,返回VIEW_TYPES.NORMAL

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