Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68a63e02 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix the IllegalArgumentException from RecyclerView" am: 8f793f5e am:...

Merge "Fix the IllegalArgumentException from RecyclerView" am: 8f793f5e am: 227b8f02 am: 4aea8736

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2216421



Change-Id: Iaad1dacbe8f2b477876bc0c12a49bafdfc4dd449
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 808da234 4aea8736
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -148,11 +148,11 @@ public class HighlightablePreferenceGroupAdapter extends PreferenceGroupAdapter
            }, DELAY_COLLAPSE_DURATION_MILLIS);
        }

        // Remove the animator as early as possible to avoid a RecyclerView crash.
        recyclerView.setItemAnimator(null);
        // Scroll to correct position after 600 milliseconds.
        root.postDelayed(() -> {
            mHighlightRequested = true;
            // Remove the animator to avoid a RecyclerView crash.
            recyclerView.setItemAnimator(null);
            recyclerView.smoothScrollToPosition(position);
            mHighlightPosition = position;
        }, DELAY_HIGHLIGHT_DURATION_MILLIS);