Merge pull request #1808 from domingos86/typedarray-recycle

recycle typedArrays
This commit is contained in:
Martin Fietz 2016-03-22 08:32:19 +01:00
commit 030211183c
2 changed files with 2 additions and 0 deletions

View File

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

View File

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