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

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

Fixed a bug where a notification was incorrectly marked as removed

When unauto-bundled, it could lead to serious bugs on the lockscreen
and the header not being restored.

Change-Id: I2d6310a2bcb2f3a60402db5f1e522954f8bd0389
Fixes: 29463339
parent a554c707
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -761,9 +761,6 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
        mRemoved = true;

        mPrivateLayout.setRemoved();
        if (mChildrenContainer != null) {
            mChildrenContainer.setRemoved();
        }
    }

    public NotificationChildrenContainer getChildrenContainer() {
+0 −8
Original line number Diff line number Diff line
@@ -856,14 +856,6 @@ public class NotificationChildrenContainer extends ViewGroup {
                mNotificationParent.getNotificationColor());
    }

    public void setRemoved() {
        int childCount = mChildren.size();
        for (int i = 0; i < childCount; i++) {
            ExpandableNotificationRow child = mChildren.get(i);
            child.setRemoved();
        }
    }

    public int getPositionInLinearLayout(View childInGroup) {
        int position = mNotificationHeaderMargin + mNotificatonTopPadding;