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

频繁回调onLayoutChildren和item刷新问题 #43

Open
wdmzszly opened this issue Sep 16, 2024 · 0 comments
Open

频繁回调onLayoutChildren和item刷新问题 #43

wdmzszly opened this issue Sep 16, 2024 · 0 comments

Comments

@wdmzszly
Copy link

wdmzszly commented Sep 16, 2024

1.内部调了mCurSelectedView.setSelected()导致onLayoutChildren回调频繁
2.onLayoutChildren内部错误的逻辑导致item无法刷新
if (state.getItemCount() != 0 && !state.didStructureChange()) { if (BuildConfig.DEBUG) { Log.d(TAG, "onLayoutChildren: ignore extra layout step"); } return; }

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