既然在ViewRootImpl在onResume中才創建的,那為什么5分12秒中,p應該為空,為什么可以調invalidateChild呢
? ? ? ? ? ? final ViewParent p = mParent;
? ? ? ? ? ? if (p != null && ai != null && l < r && t < b) {
? ? ? ? ? ? ? ? final Rect damage = ai.mTmpInvalRect;
? ? ? ? ? ? ? ? damage.set(l, t, r, b);
? ? ? ? ? ? ? ? p.invalidateChild(this, damage);
? ? ? ? ? ? }
這段代碼不應該走不進來嗎