[Android] BitmapCache: remove unneeded context and fix warnings
Jean-Baptiste Kempf
git at videolan.org
Sat May 23 17:39:02 CEST 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 23 17:32:11 2015 +0200| [1feb2467435bd871cd8ba1a96b23eeb8d91d7b70] | committer: Jean-Baptiste Kempf
BitmapCache: remove unneeded context and fix warnings
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=1feb2467435bd871cd8ba1a96b23eeb8d91d7b70
---
vlc-android/src/org/videolan/vlc/util/BitmapCache.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/util/BitmapCache.java b/vlc-android/src/org/videolan/vlc/util/BitmapCache.java
index 8453701..62d29f2 100644
--- a/vlc-android/src/org/videolan/vlc/util/BitmapCache.java
+++ b/vlc-android/src/org/videolan/vlc/util/BitmapCache.java
@@ -20,10 +20,12 @@
package org.videolan.vlc.util;
+import android.annotation.TargetApi;
import android.app.ActivityManager;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
+import android.os.Build;
import android.support.v4.util.LruCache;
import android.util.Log;
import android.view.View;
@@ -45,11 +47,9 @@ public class BitmapCache {
return mInstance;
}
+ @TargetApi(Build.VERSION_CODES.HONEYCOMB)
private BitmapCache() {
- // Get the global context of the application
- Context context = VLCApplication.getAppContext();
-
// Get memory class of this device, exceeding this amount will throw an
// OutOfMemory exception.
final ActivityManager am = ((ActivityManager) VLCApplication.getAppContext().getSystemService(
More information about the Android
mailing list