From 3969ffa2f5830a680490d03fbb113a7fee900b56 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Mon, 1 Sep 2014 23:08:39 +0200 Subject: [PATCH] Fixed a bug with the appear animation of the notifications Bug: 17346264 Change-Id: I0c830c1661342eb0885da5e8dec385d0775f146b --- .../android/systemui/statusbar/ExpandableOutlineView.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java index d882a87bdf4e5..f85d32b3770c5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java @@ -31,11 +31,9 @@ public abstract class ExpandableOutlineView extends ExpandableView { private final Rect mOutlineRect = new Rect(); private boolean mCustomOutline; - private float mDensity; public ExpandableOutlineView(Context context, AttributeSet attrs) { super(context, attrs); - mDensity = getResources().getDisplayMetrics().density; setOutlineProvider(new ViewOutlineProvider() { @Override public void getOutline(View view, Outline outline) { @@ -78,8 +76,8 @@ public abstract class ExpandableOutlineView extends ExpandableView { mOutlineRect.set((int) left, (int) top, (int) right, (int) bottom); // Outlines need to be at least 1 dp - mOutlineRect.bottom = (int) Math.max(top + mDensity, mOutlineRect.bottom); - mOutlineRect.right = (int) Math.max(left + mDensity, mOutlineRect.right); + mOutlineRect.bottom = (int) Math.max(top, mOutlineRect.bottom); + mOutlineRect.right = (int) Math.max(left, mOutlineRect.right); invalidateOutline(); }