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

swapAdapter 切换适配器以后getItem 获取的数据不对 #2739

Closed
wilder-ness opened this issue May 10, 2019 · 2 comments
Closed

swapAdapter 切换适配器以后getItem 获取的数据不对 #2739

wilder-ness opened this issue May 10, 2019 · 2 comments
Labels
unreproduced The problem did not occur when testing.

Comments

@wilder-ness
Copy link

我有2个adapter
mLeftAdapter,mRightAdapter 名字同但是是相同的adapter
其中的初始化的点击事件
init {
setOnItemClickListener { _, view, position ->
getItem(position)
}
}
当我使用 swapAdapter 切换适配器以后 从mLeftAdapter切换到 mRightAdapter 后
UI显示正确,但是getItem 获取的数据时mLeftAdapter 中的内容 而且 mdatas 中的数据也是和
mLeftAdapter 中的数据

@shichaohui
Copy link
Collaborator

未能重现该问题,感觉是你的用法不太对,是否能提供一个 Demo ?

@shichaohui shichaohui added the unreproduced The problem did not occur when testing. label Jul 20, 2019
@CymChad
Copy link
Owner

CymChad commented Jul 21, 2019

请根据规范提问 #2807

@CymChad CymChad closed this as completed Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unreproduced The problem did not occur when testing.
Projects
None yet
Development

No branches or pull requests

3 participants