Don't set mNextDrawUseBlastSync when hardware is not enabled
Otherwise, it will make the ViewRootImpl pause forever. Because there won't be any frame-drawing callback where we clear the flag. Fix: 182797514 Test: steps in the bug Change-Id: Iadd35f1b112626399c064a1cd7d7da323bb9e36c
This commit is contained in:
@@ -3207,7 +3207,9 @@ public final class ViewRootImpl implements ViewParent,
|
||||
Log.d(mTag, "Relayout called with blastSync");
|
||||
}
|
||||
reportNextDraw();
|
||||
mNextDrawUseBlastSync = true;
|
||||
if (isHardwareEnabled()) {
|
||||
mNextDrawUseBlastSync = true;
|
||||
}
|
||||
}
|
||||
|
||||
boolean cancelDraw = mAttachInfo.mTreeObserver.dispatchOnPreDraw() || !isViewVisible;
|
||||
|
||||
Reference in New Issue
Block a user