Merge "Fix visibility of notification footer divider" into ub-launcher3-dorval-polish
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user