diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2018-01-21 22:50:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-21 22:50:47 +0100 |
commit | 5526937698c6d45188ff273a3b18866da443c29c (patch) | |
tree | 5895b61960ac96cd966ae60e1a7857f58123c74d /app/src/main/java/de/danoeh/antennapod/view | |
parent | 06113b089190f9a4ccfac685b17e38f03964a71e (diff) | |
parent | 34a5d7eb17d2074d746107abcdc6872ae7ad285c (diff) | |
download | AntennaPod-5526937698c6d45188ff273a3b18866da443c29c.zip |
Merge branch 'develop' into picture-in-picture
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/view')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/view/SquareImageView.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/view/SquareImageView.java b/app/src/main/java/de/danoeh/antennapod/view/SquareImageView.java index 27b6ee2bc..7ce33e11f 100644 --- a/app/src/main/java/de/danoeh/antennapod/view/SquareImageView.java +++ b/app/src/main/java/de/danoeh/antennapod/view/SquareImageView.java @@ -1,13 +1,13 @@ package de.danoeh.antennapod.view; import android.content.Context; +import android.support.v7.widget.AppCompatImageView; import android.util.AttributeSet; -import android.widget.ImageView; /** * From http://stackoverflow.com/a/19449488/6839 */ -public class SquareImageView extends ImageView { +public class SquareImageView extends AppCompatImageView { public SquareImageView(Context context) { super(context); @@ -26,6 +26,7 @@ public class SquareImageView extends ImageView { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int width = getMeasuredWidth(); + //noinspection SuspiciousNameCombination setMeasuredDimension(width, width); } |