Loading core/java/android/view/ViewRootImpl.java +7 −4 Original line number Original line Diff line number Diff line Loading @@ -3500,7 +3500,9 @@ public final class ViewRootImpl implements ViewParent, } } mPendingTransitions.clear(); mPendingTransitions.clear(); } } performDraw(); if (!performDraw() && mSyncBufferCallback != null) { mSyncBufferCallback.onBufferReady(null); } } } if (mAttachInfo.mContentCaptureEvents != null) { if (mAttachInfo.mContentCaptureEvents != null) { Loading Loading @@ -4243,11 +4245,11 @@ public final class ViewRootImpl implements ViewParent, }); }); } } private void performDraw() { private boolean performDraw() { if (mAttachInfo.mDisplayState == Display.STATE_OFF && !mReportNextDraw) { if (mAttachInfo.mDisplayState == Display.STATE_OFF && !mReportNextDraw) { return; return false; } else if (mView == null) { } else if (mView == null) { return; return false; } } final boolean fullRedrawNeeded = mFullRedrawNeeded || mSyncBufferCallback != null; final boolean fullRedrawNeeded = mFullRedrawNeeded || mSyncBufferCallback != null; Loading Loading @@ -4331,6 +4333,7 @@ public final class ViewRootImpl implements ViewParent, if (mPerformContentCapture) { if (mPerformContentCapture) { performContentCaptureInitialReport(); performContentCaptureInitialReport(); } } return true; } } /** /** Loading Loading
core/java/android/view/ViewRootImpl.java +7 −4 Original line number Original line Diff line number Diff line Loading @@ -3500,7 +3500,9 @@ public final class ViewRootImpl implements ViewParent, } } mPendingTransitions.clear(); mPendingTransitions.clear(); } } performDraw(); if (!performDraw() && mSyncBufferCallback != null) { mSyncBufferCallback.onBufferReady(null); } } } if (mAttachInfo.mContentCaptureEvents != null) { if (mAttachInfo.mContentCaptureEvents != null) { Loading Loading @@ -4243,11 +4245,11 @@ public final class ViewRootImpl implements ViewParent, }); }); } } private void performDraw() { private boolean performDraw() { if (mAttachInfo.mDisplayState == Display.STATE_OFF && !mReportNextDraw) { if (mAttachInfo.mDisplayState == Display.STATE_OFF && !mReportNextDraw) { return; return false; } else if (mView == null) { } else if (mView == null) { return; return false; } } final boolean fullRedrawNeeded = mFullRedrawNeeded || mSyncBufferCallback != null; final boolean fullRedrawNeeded = mFullRedrawNeeded || mSyncBufferCallback != null; Loading Loading @@ -4331,6 +4333,7 @@ public final class ViewRootImpl implements ViewParent, if (mPerformContentCapture) { if (mPerformContentCapture) { performContentCaptureInitialReport(); performContentCaptureInitialReport(); } } return true; } } /** /** Loading