Prevent crash

This commit is contained in:
M66B
2024-01-18 11:06:44 +01:00
parent 445dc9f25f
commit f327dbabe6
2 changed files with 19 additions and 0 deletions

View File

@@ -4659,6 +4659,10 @@ public class RecyclerView extends ViewGroup implements ScrollingView,
*/
private void dispatchLayoutStep3() {
mState.assertLayoutStep(State.STEP_ANIMATIONS);
if ((State.STEP_ANIMATIONS & mState.mLayoutStep) == 0) {
eu.faircode.email.Log.w(new Throwable("RecyclerView.dispatchLayoutStep3"));
return;
}
startInterceptRequestLayout();
onEnterLayoutOrScroll();
mState.mLayoutStep = State.STEP_START;