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

This commit is contained in:
Steven Ng
2021-04-06 11:06:22 +00:00
committed by Android (Google) Code Review

View File

@@ -19782,6 +19782,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
return;
}
if (mAttachInfo == null) {
// View is not attached.
return;
}
final int h = dr.getIntrinsicHeight();
final int w = dr.getIntrinsicWidth();
final Rect rect = mAttachInfo.mTmpInvalRect;