From 68685ccc1a4f42e4fad03caab7204a6c660dda36 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Tue, 29 Mar 2016 16:39:28 +0300 Subject: [PATCH] fix paddings --- .../java/com/github/axet/audiorecorder/widgets/PitchView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/axet/audiorecorder/widgets/PitchView.java b/app/src/main/java/com/github/axet/audiorecorder/widgets/PitchView.java index 07e70ec..bcda926 100644 --- a/app/src/main/java/com/github/axet/audiorecorder/widgets/PitchView.java +++ b/app/src/main/java/com/github/axet/audiorecorder/widgets/PitchView.java @@ -225,7 +225,7 @@ public class PitchView extends ViewGroup { textPaint.getTextBounds(this.text, 0, this.text.length(), textBounds); h += textBounds.height(); h += dp2px(2); - h += dp2px(pitchDlimiter + getPaddingTop() + getPaddingBottom()); + h += dp2px(pitchDlimiter) + getPaddingTop() + getPaddingBottom(); setMeasuredDimension(w, h); }