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

Commit ec0c462a authored by Selim Cinek's avatar Selim Cinek
Browse files

Remove unnecessary wtf which overtriggered

Test: observe no wtfs
Fixes: 117237815
Change-Id: Iba2477358a2439d683610c2e6985d9c93bd39318
parent b40df137
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -348,15 +348,13 @@ public class NotificationShelf extends ActivatableNotificationView implements
            if (notGoneIndex == 0) {
                StatusBarIconView icon = row.getEntry().expandedIcon;
                NotificationIconContainer.IconState iconState = getIconState(icon);
                // The icon state might be null in rare cases where the notification is actually
                // added to the layout, but not to the shelf. An example are replied messages, since
                // they don't show up on AOD
                if (iconState != null && iconState.clampedAppearAmount == 1.0f) {
                    // only if the first icon is fully in the shelf we want to clip to it!
                    backgroundTop = (int) (row.getTranslationY() - getTranslationY());
                    firstElementRoundness = row.getCurrentTopRoundness();
                } else if (iconState == null) {
                    Log.wtf(TAG, "iconState is null. ExpandedIcon: " + row.getEntry().expandedIcon
                            + (row.getEntry().expandedIcon != null
                            ? "\n icon parent: " + row.getEntry().expandedIcon.getParent() : "")
                            + " \n number of notifications: " + mHostLayout.getChildCount() );
                }
            }
            if (row.isFirstInSection() && previousRow != null && previousRow.isLastInSection()) {