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

Commit 8ae3e13a authored by Steven Ng's avatar Steven Ng Committed by Android (Google) Code Review
Browse files

Merge "onDrawScrollIndicators returns early if the view isn't attached" into sc-dev

parents adb4b12d 32a1305c
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -19782,6 +19782,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            return;
            return;
        }
        }
        if (mAttachInfo == null) {
            // View is not attached.
            return;
        }
        final int h = dr.getIntrinsicHeight();
        final int h = dr.getIntrinsicHeight();
        final int w = dr.getIntrinsicWidth();
        final int w = dr.getIntrinsicWidth();
        final Rect rect = mAttachInfo.mTmpInvalRect;
        final Rect rect = mAttachInfo.mTmpInvalRect;