diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-03-22 08:32:19 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-03-22 08:32:19 +0100 |
commit | 030211183ceac82f6625e4531e820ad13f22731d (patch) | |
tree | c2a69e2c0127a8a435f429e38365c94774522b8b | |
parent | b5dc97156e284c95db389a717597033961639406 (diff) | |
parent | 5f58238b4fe94e29d6fe147457874a87fbbc587b (diff) | |
download | AntennaPod-030211183ceac82f6625e4531e820ad13f22731d.zip |
Merge pull request #1808 from domingos86/typedarray-recycle
recycle typedArrays
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java | 1 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/menuhandler/MenuItemUtils.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java index e0765ed96..0de1ca1ff 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java @@ -189,6 +189,7 @@ public class FeedItemlistAdapter extends BaseAdapter { holder.type.setImageBitmap(null); holder.type.setVisibility(View.GONE); } + typeDrawables.recycle(); if(media.isCurrentlyPlaying()) { holder.container.setBackgroundColor(playingBackGroundColor); diff --git a/app/src/main/java/de/danoeh/antennapod/menuhandler/MenuItemUtils.java b/app/src/main/java/de/danoeh/antennapod/menuhandler/MenuItemUtils.java index 0d2ff8a75..4c28b197d 100644 --- a/app/src/main/java/de/danoeh/antennapod/menuhandler/MenuItemUtils.java +++ b/app/src/main/java/de/danoeh/antennapod/menuhandler/MenuItemUtils.java @@ -39,6 +39,7 @@ public class MenuItemUtils extends de.danoeh.antennapod.core.menuhandler.MenuIte queueLock.setTitle(de.danoeh.antennapod.R.string.lock_queue); queueLock.setIcon(ta.getDrawable(1)); } + ta.recycle(); } } |