Keep gutter aligned when removing notification footer
Bug: 63262764 Change-Id: I94e7978dafc04fc2673a9bb8c6d24ff20641416f
This commit is contained in:
1 parent
2ed276eb13
commit
67a25b3c4d
2 files changed
+22
-3
No files matched your search
@@ -206,7 +206,10 @@ public class NotificationFooterLayout extends FrameLayout {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
((ViewGroup) getParent()).findViewById(R.id.divider).setVisibility(GONE);
|
||||
((ViewGroup) getParent()).removeView(NotificationFooterLayout.this);
|
||||
// Keep view around because gutter is aligned to it, but remove height to
|
||||
// both hide the view and keep calculations correct for last dismissal.
|
||||
getLayoutParams().height = 0;
|
||||
requestLayout();
|
||||
}
|
||||
});
|
||||
collapseFooter.start();
|
||||
|
||||
Reference in new issue
Block a user