mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Do not leak a TypedArray instance
Change-Id: Ifea85ed88b7054af7b7f8c36ab90cdf9fca36597 GitHub: https://github.com/wikimedia/apps-android-commons/pull/26
This commit is contained in:
parent
81e79cf096
commit
19f9aed040
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ public class MediaWikiImageView extends ImageView {
|
|||
this(context, attrs, 0);
|
||||
TypedArray actualAttrs = context.getTheme().obtainStyledAttributes(attrs, R.styleable.MediaWikiImageView, 0, 0);
|
||||
isThumbnail = actualAttrs.getBoolean(0, false);
|
||||
actualAttrs.recycle();
|
||||
}
|
||||
|
||||
public MediaWikiImageView(Context context, AttributeSet attrs, int defStyle) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue