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

Commit 1ee50722 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Be more lenient when processing group headers" into oc-dr1-dev am: 69317930

am: 36556b79

Change-Id: Ia0a4ca26936236c5ca5a1dd90b32211a8cfc761f
parents 5b905cbf 36556b79
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -756,6 +756,19 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        return getShowingLayout().getVisibleNotificationHeader();
    }


    /**
     * @return the contracted notification header. This can be different from
     * {@link #getNotificationHeader()} and also {@link #getVisibleNotificationHeader()} and only
     * returns the contracted version.
     */
    public NotificationHeaderView getContractedNotificationHeader() {
        if (mIsSummaryWithChildren) {
            return mChildrenContainer.getHeaderView();
        }
        return mPrivateLayout.getContractedNotificationHeader();
    }

    public void setOnExpandClickListener(OnExpandClickListener onExpandClickListener) {
        mOnExpandClickListener = onExpandClickListener;
    }
+8 −0
Original line number Diff line number Diff line
@@ -1308,6 +1308,14 @@ public class NotificationContentView extends FrameLayout {
        return header;
    }


    public NotificationHeaderView getContractedNotificationHeader() {
        if (mContractedChild != null) {
            return mContractedWrapper.getNotificationHeader();
        }
        return null;
    }

    public NotificationHeaderView getVisibleNotificationHeader() {
        NotificationViewWrapper wrapper = getVisibleWrapper(mVisibleType);
        return wrapper == null ? null : wrapper.getNotificationHeader();
+3 −2
Original line number Diff line number Diff line
@@ -267,9 +267,10 @@ public class NotificationHeaderUtil {
            if (!mApply) {
                return;
            }
            NotificationHeaderView header = row.getNotificationHeader();
            NotificationHeaderView header = row.getContractedNotificationHeader();
            if (header == null) {
                mApply = false;
                // No header found. We still consider this to be the same to avoid weird flickering
                // when for example showing an undo notification
                return;
            }
            Object childData = mExtractor == null ? null : mExtractor.extractData(row);