Made background updater more robust to state changes
am: 9bfba9c157
Change-Id: I32e762641b7efd9ce10f0b7d6b21b986c58c617e
This commit is contained in:
@@ -1961,9 +1961,9 @@ public class NotificationStackScrollLayout extends ViewGroup
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void applyCurrentBackgroundBounds() {
|
private void applyCurrentBackgroundBounds() {
|
||||||
if (!mFadingOut) {
|
mScrimController.setExcludedBackgroundArea(
|
||||||
mScrimController.setExcludedBackgroundArea(mCurrentBounds);
|
mFadingOut || mParentFadingOut || mAmbientState.isDark() ? null
|
||||||
}
|
: mCurrentBounds);
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3839,11 +3839,7 @@ public class NotificationStackScrollLayout extends ViewGroup
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateFadingState() {
|
private void updateFadingState() {
|
||||||
if (mFadingOut || mParentFadingOut || mAmbientState.isDark()) {
|
applyCurrentBackgroundBounds();
|
||||||
mScrimController.setExcludedBackgroundArea(null);
|
|
||||||
} else {
|
|
||||||
applyCurrentBackgroundBounds();
|
|
||||||
}
|
|
||||||
updateSrcDrawing();
|
updateSrcDrawing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user