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

Commit 693601db authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed error that was repeatedly polluting the log

Bug: 152455473
Test: Observe no logs
Change-Id: I454edd35fd1089950e7aed6bbb8699b1de6b80e1
parent b98be8b6
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -409,12 +409,9 @@ public class NotificationShelf extends ActivatableNotificationView implements
    private void clipTransientViews() {
        for (int i = 0; i < mHostLayout.getTransientViewCount(); i++) {
            View transientView = mHostLayout.getTransientView(i);
            if (transientView instanceof ExpandableNotificationRow) {
                ExpandableNotificationRow transientRow = (ExpandableNotificationRow) transientView;
                updateNotificationClipHeight(transientRow, getTranslationY(), -1);
            } else {
                Log.e(TAG, "NotificationShelf.clipTransientViews(): "
                        + "Trying to clip non-row transient view");
            if (transientView instanceof ExpandableView) {
                ExpandableView transientExpandableView = (ExpandableView) transientView;
                updateNotificationClipHeight(transientExpandableView, getTranslationY(), -1);
            }
        }
    }