Merge "Made background updater more robust to state changes" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c6c45d225c
@@ -1961,9 +1961,9 @@ public class NotificationStackScrollLayout extends ViewGroup
|
||||
}
|
||||
|
||||
private void applyCurrentBackgroundBounds() {
|
||||
if (!mFadingOut) {
|
||||
mScrimController.setExcludedBackgroundArea(mCurrentBounds);
|
||||
}
|
||||
mScrimController.setExcludedBackgroundArea(
|
||||
mFadingOut || mParentFadingOut || mAmbientState.isDark() ? null
|
||||
: mCurrentBounds);
|
||||
invalidate();
|
||||
}
|
||||
|
||||
@@ -3839,11 +3839,7 @@ public class NotificationStackScrollLayout extends ViewGroup
|
||||
}
|
||||
|
||||
private void updateFadingState() {
|
||||
if (mFadingOut || mParentFadingOut || mAmbientState.isDark()) {
|
||||
mScrimController.setExcludedBackgroundArea(null);
|
||||
} else {
|
||||
applyCurrentBackgroundBounds();
|
||||
}
|
||||
applyCurrentBackgroundBounds();
|
||||
updateSrcDrawing();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user