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

Commit 79b176e4 authored by Tony Wickham's avatar Tony Wickham
Browse files

Fix visibility of notification footer divider

Now it is only visible when the notification footer is present,
instead of always being visible.

Change-Id: Ie85ff31918901115cdfe55b36e75aa80b43e7b13
parent acaf5b3a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -66,7 +66,8 @@
            android:layout_width="match_parent"
            android:layout_height="@dimen/popup_item_divider_height"
            android:background="?android:attr/listDivider"
            android:layout_below="@id/main_view"/>
            android:layout_below="@id/main_view"
            android:visibility="gone" />

        <include layout="@layout/notification_footer"
            android:id="@+id/footer"
+1 −0
Original line number Diff line number Diff line
@@ -205,6 +205,7 @@ public class NotificationFooterLayout extends FrameLayout {
                collapseFooter.addListener(new AnimatorListenerAdapter() {
                    @Override
                    public void onAnimationEnd(Animator animation) {
                        ((ViewGroup) getParent()).findViewById(R.id.divider).setVisibility(GONE);
                        ((ViewGroup) getParent()).removeView(NotificationFooterLayout.this);
                    }
                });
+3 −0
Original line number Diff line number Diff line
@@ -278,6 +278,9 @@ public class PopupContainerWithArrow extends AbstractFloatingView implements Dra
                int footerHeight = notificationFooterHasIcons ?
                        res.getDimensionPixelSize(R.dimen.notification_footer_height) : 0;
                item.findViewById(R.id.footer).getLayoutParams().height = footerHeight;
                if (notificationFooterHasIcons) {
                    mNotificationItemView.findViewById(R.id.divider).setVisibility(VISIBLE);
                }

                int roundedCorners = ROUNDED_TOP_CORNERS | ROUNDED_BOTTOM_CORNERS;
                if (shouldUnroundTopCorners) {