We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd6e7e1 + f84208f commit 51d7100Copy full SHA for 51d7100
core/java/android/view/ViewRootImpl.java
@@ -832,8 +832,8 @@ void invalidate() {
832
void invalidateWorld(View view) {
833
view.invalidate();
834
if (view instanceof ViewGroup) {
835
- ViewGroup parent = (ViewGroup)view;
836
- for (int i=0; i<parent.getChildCount(); i++) {
+ ViewGroup parent = (ViewGroup) view;
+ for (int i = 0; i < parent.getChildCount(); i++) {
837
invalidateWorld(parent.getChildAt(i));
838
}
839
@@ -2998,7 +2998,9 @@ public void handleMessage(Message msg) {
2998
handleDispatchDoneAnimating();
2999
} break;
3000
case MSG_INVALIDATE_WORLD: {
3001
- invalidateWorld(mView);
+ if (mView != null) {
3002
+ invalidateWorld(mView);
3003
+ }
3004
3005
3006
0 commit comments