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

Commit 20367dbd authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge changes I0ca13626,I3677ce54 into nyc-dev

am: bbcb733d

Change-Id: I1ab5db3410322ea9880ad4bce9b78b8355c0f2ce
parents 7399cf0c bbcb733d
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -873,7 +873,8 @@ public class NotificationStackScrollLayout extends ViewGroup
            ExpandableNotificationRow row = (ExpandableNotificationRow) child;
            ExpandableNotificationRow parent = row.getNotificationParent();
            if (parent != null && parent.areChildrenExpanded()
                    && (mGearExposedView == parent
                    && (parent.areGutsExposed()
                        || mGearExposedView == parent
                        || (parent.getNotificationChildren().size() == 1
                                && parent.isClearable()))) {
                // In this case the group is expanded and showing the gear for the
@@ -961,6 +962,7 @@ public class NotificationStackScrollLayout extends ViewGroup
    public boolean canChildBeExpanded(View v) {
        return v instanceof ExpandableNotificationRow
                && ((ExpandableNotificationRow) v).isExpandable()
                && !((ExpandableNotificationRow) v).areGutsExposed()
                && (mIsExpanded || !((ExpandableNotificationRow) v).isPinned());
    }

@@ -2097,6 +2099,8 @@ public class NotificationStackScrollLayout extends ViewGroup
        final ExpandableView firstChild = getFirstChildNotGone();
        int firstChildMinHeight = firstChild != null
                ? firstChild.getIntrinsicHeight()
                : mEmptyShadeView != null
                        ? mEmptyShadeView.getMinHeight()
                        : mCollapsedSize;
        if (mOwnScrollY > 0) {
            firstChildMinHeight = Math.max(firstChildMinHeight - mOwnScrollY, mCollapsedSize);
+6 −0
Original line number Diff line number Diff line
@@ -171,6 +171,12 @@ public class StackScrollAlgorithm {
    }

    public static boolean canChildBeDismissed(View v) {
        if (v instanceof ExpandableNotificationRow) {
            ExpandableNotificationRow row = (ExpandableNotificationRow) v;
            if (row.areGutsExposed()) {
                return false;
            }
        }
        final View veto = v.findViewById(R.id.veto);
        return (veto != null && veto.getVisibility() != View.GONE);
    }