[Android] Hide logs in release builds
Geoffrey Métais
git at videolan.org
Wed Jun 7 15:51:54 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 7 14:46:08 2017 +0200| [579b288d5e92f45c02bec77eae670d5caa9a0ae9] | committer: Geoffrey Métais
Hide logs in release builds
> https://code.videolan.org/videolan/vlc-android/commit/579b288d5e92f45c02bec77eae670d5caa9a0ae9
---
vlc-android/src/org/videolan/vlc/gui/helpers/BitmapCache.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/BitmapCache.java b/vlc-android/src/org/videolan/vlc/gui/helpers/BitmapCache.java
index 2e3b116e4..0d2848b87 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/BitmapCache.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/BitmapCache.java
@@ -28,6 +28,7 @@ import android.os.Build;
import android.support.v4.util.LruCache;
import android.util.Log;
+import org.videolan.vlc.BuildConfig;
import org.videolan.vlc.util.Strings;
public class BitmapCache {
@@ -49,7 +50,8 @@ public class BitmapCache {
// Use 20% of the available memory for this memory cache.
final long cacheSize = Runtime.getRuntime().maxMemory() / 5;
- Log.i(TAG, "LRUCache size set to " + Strings.readableSize(cacheSize));
+ if (BuildConfig.DEBUG)
+ Log.i(TAG, "LRUCache size set to " + Strings.readableSize(cacheSize));
mMemCache = new LruCache<String, Bitmap>((int) cacheSize) {
More information about the Android
mailing list