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

Commit 7210947e authored by Selim Cinek's avatar Selim Cinek
Browse files

Handling content intent of groups correctly

Content intent of children in groups can now
only be launched if the group is expanded.

Bug: 26582343
Change-Id: I5bf2c853d7659b4c764892409c6c7cc3fc647cc8
parent e6ff946c
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -317,6 +317,16 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
        updateNoBackgroundState();
        updateNoBackgroundState();
    }
    }


    @Override
    public boolean onTouchEvent(MotionEvent event) {
        if (event.getActionMasked() != MotionEvent.ACTION_DOWN
                || !isChildInGroup() || isGroupExpanded()) {
            return super.onTouchEvent(event);
        } else {
            return false;
        }
    }

    @Override
    @Override
    protected boolean shouldHideBackground() {
    protected boolean shouldHideBackground() {
        return super.shouldHideBackground() || mShowNoBackground;
        return super.shouldHideBackground() || mShowNoBackground;