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

Commit 37b0ccf3 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

Change-Id: I32e762641b7efd9ce10f0b7d6b21b986c58c617e
parents 1dfb9c35 9bfba9c1
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -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();
        }
        updateSrcDrawing();
    }