Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb966532 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Made background updater more robust to state changes am: 9bfba9c1 am: 37b0ccf3

am: 365d80d3

Change-Id: Iec3443791acafc77644d73ddadf66561f17d2b16
parents 98dcf7ec 365d80d3
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -1996,9 +1996,9 @@ public class NotificationStackScrollLayout extends ViewGroup
    }

    private void applyCurrentBackgroundBounds() {
        if (!mFadingOut) {
            mScrimController.setExcludedBackgroundArea(mCurrentBounds);
        }
        mScrimController.setExcludedBackgroundArea(
                mFadingOut || mParentFadingOut || mAmbientState.isDark() ? null
                        : mCurrentBounds);
        invalidate();
    }

@@ -3879,11 +3879,7 @@ public class NotificationStackScrollLayout extends ViewGroup
    }

    private void updateFadingState() {
        if (mFadingOut || mParentFadingOut || mAmbientState.isDark()) {
            mScrimController.setExcludedBackgroundArea(null);
        } else {
        applyCurrentBackgroundBounds();
        }
        updateSrcDrawing();
    }