am ca0839a9: am 19aca9bd: am e105f923: Merge "Fixed a bug with the appear animation of the notifications" into lmp-dev

* commit 'ca0839a9b097c413ed46c2cd667f8d1813a2f3fb':
  Fixed a bug with the appear animation of the notifications
This commit is contained in:
Selim Cinek
2014-09-02 17:40:30 +00:00
committed by Android Git Automerger

View File

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