[Android] Recycle attrs in HeaderScrollView

Jean-Baptiste Kempf git at videolan.org
Wed Apr 9 11:42:53 CEST 2014


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr  9 11:35:14 2014 +0200| [28f9933476a02b76a66e3c3890e38e190d934282] | committer: Jean-Baptiste Kempf

Recycle attrs in HeaderScrollView

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=28f9933476a02b76a66e3c3890e38e190d934282
---

 vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java b/vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java
index 189b0ef..48a5dad 100644
--- a/vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java
+++ b/vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java
@@ -100,5 +100,6 @@ public class HeaderScrollView extends HorizontalScrollView {
         TextView newView = (TextView) hl.getChildAt(newPosition);
         if (newView != null)
             newView.setTextColor(attrs.getColor(1, 0));
+        attrs.recycle();
     }
 }



More information about the Android mailing list