Merge "Attempt to fix IllegalArgumentException from RecyclerView" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0d8b0ebd0d
@@ -149,6 +149,8 @@ public class HighlightablePreferenceGroupAdapter extends PreferenceGroupAdapter
|
||||
|
||||
root.postDelayed(() -> {
|
||||
mHighlightRequested = true;
|
||||
// Remove the animator to avoid a RecyclerView crash.
|
||||
recyclerView.setItemAnimator(null);
|
||||
recyclerView.smoothScrollToPosition(position);
|
||||
mHighlightPosition = position;
|
||||
notifyItemChanged(position);
|
||||
|
Reference in New Issue
Block a user