Revert "Prevent crash"

This reverts commit f327dbabe6.
pull/214/head
M66B 11 months ago
parent f327dbabe6
commit a34290fb3f

@ -4659,10 +4659,6 @@ 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;

@ -1,15 +0,0 @@
diff --git a/app/src/main/java/androidx/recyclerview/widget/RecyclerView.java b/app/src/main/java/androidx/recyclerview/widget/RecyclerView.java
index 9265d56d01..d02792973f 100644
--- a/app/src/main/java/androidx/recyclerview/widget/RecyclerView.java
+++ b/app/src/main/java/androidx/recyclerview/widget/RecyclerView.java
@@ -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;
Loading…
Cancel
Save