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
This commit is contained in:
Tony Wickham
2017-06-05 17:54:45 -07:00
parent acaf5b3a37
commit 79b176e42c
3 changed files with 6 additions and 1 deletions

View File

@@ -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);
}
});