summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/notification/NotificationFooterLayout.java
diff options
context:
space:
mode:
authorTony <twickham@google.com>2017-07-03 13:35:18 -0700
committerTony <twickham@google.com>2017-07-06 08:28:33 -0700
commit67a25b3c4da9e72766993182f87419620faa7e0a (patch)
tree4468735038fd9c8acefb0778ea77a4b2ffd39988 /src/com/android/launcher3/notification/NotificationFooterLayout.java
parent2ed276eb13f38e3383eab872b0bff26d569528c1 (diff)
downloadandroid_packages_apps_Trebuchet-67a25b3c4da9e72766993182f87419620faa7e0a.tar.gz
android_packages_apps_Trebuchet-67a25b3c4da9e72766993182f87419620faa7e0a.tar.bz2
android_packages_apps_Trebuchet-67a25b3c4da9e72766993182f87419620faa7e0a.zip
Keep gutter aligned when removing notification footer
Bug: 63262764 Change-Id: I94e7978dafc04fc2673a9bb8c6d24ff20641416f
Diffstat (limited to 'src/com/android/launcher3/notification/NotificationFooterLayout.java')
-rw-r--r--src/com/android/launcher3/notification/NotificationFooterLayout.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/launcher3/notification/NotificationFooterLayout.java b/src/com/android/launcher3/notification/NotificationFooterLayout.java
index b83c9b95d..2455eabea 100644
--- a/src/com/android/launcher3/notification/NotificationFooterLayout.java
+++ b/src/com/android/launcher3/notification/NotificationFooterLayout.java
@@ -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();