[Android] Thumbnailer: don't store the context

Jean-Baptiste Kempf git at videolan.org
Mon Jul 7 03:57:55 CEST 2014


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul  7 03:50:08 2014 +0200| [d6b79f80fca6f5b304ffa07c796091d774e06ea5] | committer: Jean-Baptiste Kempf

Thumbnailer: don't store the context

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

 vlc-android/src/org/videolan/vlc/Thumbnailer.java |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/Thumbnailer.java b/vlc-android/src/org/videolan/vlc/Thumbnailer.java
index 11c57fb..2f3891f 100644
--- a/vlc-android/src/org/videolan/vlc/Thumbnailer.java
+++ b/vlc-android/src/org/videolan/vlc/Thumbnailer.java
@@ -56,17 +56,15 @@ public class Thumbnailer implements Runnable {
 
     protected Thread mThread;
     private LibVLC mLibVlc;
-    private final Context mContext;
     private int totalCount;
     private final float mDensity;
     private final String mPrefix;
 
     public Thumbnailer(Context context, Display display) {
-        mContext = context;
         DisplayMetrics metrics = new DisplayMetrics();
         display.getMetrics(metrics);
         mDensity = metrics.density;
-        mPrefix = mContext.getResources().getString(R.string.thumbnail);
+        mPrefix = context.getResources().getString(R.string.thumbnail);
     }
 
     public void start(VideoGridFragment videoGridFragment) {



More information about the Android mailing list