Merge "Avoid initialization race condition"
This commit is contained in:
committed by
Android (Google) Code Review
commit
5bbbacb3b2
@@ -561,7 +561,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
||||
}
|
||||
|
||||
protected void scheduleUpdate() {
|
||||
if (mUpdatePending) return;
|
||||
if (mUpdatePending || mScrimBehind == null) return;
|
||||
|
||||
// Make sure that a frame gets scheduled.
|
||||
mScrimBehind.invalidate();
|
||||
|
||||
Reference in New Issue
Block a user