diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-08-11 20:09:00 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-08-11 20:09:00 +0200 |
commit | dccbfea114bb36f94c86b8cad6e1579d60b2cf2f (patch) | |
tree | e7eaa4ffefa69fbb59cf91ef273f16e6dad486a1 /src/de/danoeh/antennapod/fragment | |
parent | 4002fc4bbaf311d8c2fbb9dda7026bcba96c4c3a (diff) | |
download | AntennaPod-dccbfea114bb36f94c86b8cad6e1579d60b2cf2f.zip |
Call fit() instead of resize()
Diffstat (limited to 'src/de/danoeh/antennapod/fragment')
-rw-r--r-- | src/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java | 3 | ||||
-rw-r--r-- | src/de/danoeh/antennapod/fragment/ItemlistFragment.java | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java b/src/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java index 77587194b..985673dd3 100644 --- a/src/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java +++ b/src/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java @@ -207,10 +207,9 @@ public class ExternalPlayerFragment extends Fragment { if (media != null) { txtvTitle.setText(media.getEpisodeTitle()); - int imageSize = (int) getResources().getDimension(R.dimen.external_player_height); PicassoProvider.getMediaMetadataPicassoInstance(getActivity()) .load(media.getImageUri()) - .resize(imageSize, imageSize) + .fit() .into(imgvCover); fragmentLayout.setVisibility(View.VISIBLE); diff --git a/src/de/danoeh/antennapod/fragment/ItemlistFragment.java b/src/de/danoeh/antennapod/fragment/ItemlistFragment.java index 5ef914f6c..909774467 100644 --- a/src/de/danoeh/antennapod/fragment/ItemlistFragment.java +++ b/src/de/danoeh/antennapod/fragment/ItemlistFragment.java @@ -350,10 +350,9 @@ public class ItemlistFragment extends ListFragment { txtvTitle.setText(feed.getTitle()); txtvAuthor.setText(feed.getAuthor()); - int imageSize = (int) getResources().getDimension(R.dimen.thumbnail_length_onlinefeedview); PicassoProvider.getDefaultPicassoInstance(getActivity()) .load(feed.getImageUri()) - .resize(imageSize, imageSize) + .fit() .into(imgvCover); if (feed.getLink() == null) { |