mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-21 23:32:51 +00:00
Prevent crash
This commit is contained in:
parent
445dc9f25f
commit
f327dbabe6
2 changed files with 19 additions and 0 deletions
|
@ -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;
|
||||
|
|
15
patches/RecyclerView.patch
Normal file
15
patches/RecyclerView.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
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…
Reference in a new issue