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

Commit dc7443c0 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz Committed by Android (Google) Code Review
Browse files

Merge "Remove spammy height update logs" into main

parents b77168e7 64d4a390
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -4698,9 +4698,8 @@ public class NotificationStackScrollLayout
        ExpandableView firstVisibleChild =
                firstSection == null ? null : firstSection.getFirstVisibleChild();
        if (row != null) {
            if (mLogger != null) {
                mLogger.childHeightUpdated(row, needsAnimation);
            }
            // TODO(b/424163539): child height updated logs are spammy, which hides other logs
            // logChildHeightUpdated(row, needsAnimation);
            if (row == firstVisibleChild
                    || row.getNotificationParent() == firstVisibleChild) {
                updateAlgorithmLayoutMinHeight();
@@ -4714,6 +4713,13 @@ public class NotificationStackScrollLayout
        mAnimateStackYForContentHeightChange = previouslyNeededAnimation;
    }


    private void logChildHeightUpdated(ExpandableNotificationRow row, boolean needsAnimation) {
        if (mLogger != null) {
            mLogger.childHeightUpdated(row, needsAnimation);
        }
    }

    void onChildHeightReset(ExpandableView view) {
        updateAnimationState(view);
        updateChronometerForChild(view);
+2 −1
Original line number Diff line number Diff line
@@ -138,7 +138,8 @@ constructor(

    /** An internal modification was made to notifications */
    fun notificationStackChanged() {
        logger?.notificationStackChanged()
        // TODO(b/424163539): child height updated logs are spammy, which hides other logs
        // logger?.notificationStackChanged()
        notificationStackChangedDebounced.value = notificationStackChangedDebounced.value + 1
    }