diff options
author | Owen Lin <owenlin@google.com> | 2012-03-07 17:39:56 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2012-03-14 15:48:54 +0800 |
commit | 504dd40f27893b120c7a978b5b01b73bd23559bb (patch) | |
tree | 5cd02a32256653631da6af42df47d270d417a9fd /gallerycommon/src/com/android/gallery3d/common/Utils.java | |
parent | 2fe19c950eb46c425d36279923e1fa0b541ce2c8 (diff) | |
download | android_packages_apps_Snap-504dd40f27893b120c7a978b5b01b73bd23559bb.tar.gz android_packages_apps_Snap-504dd40f27893b120c7a978b5b01b73bd23559bb.tar.bz2 android_packages_apps_Snap-504dd40f27893b120c7a978b5b01b73bd23559bb.zip |
Reuse bitmap for all micro thumb images to prevent GC.
Change-Id: I27d3002e5bb745a597f52962fe24744c8329441c
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d/common/Utils.java')
-rw-r--r-- | gallerycommon/src/com/android/gallery3d/common/Utils.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/Utils.java b/gallerycommon/src/com/android/gallery3d/common/Utils.java index bbe2a5d55..391b22535 100644 --- a/gallerycommon/src/com/android/gallery3d/common/Utils.java +++ b/gallerycommon/src/com/android/gallery3d/common/Utils.java @@ -16,22 +16,17 @@ package com.android.gallery3d.common; -import android.app.PendingIntent; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager.NameNotFoundException; import android.database.Cursor; import android.os.Build; -import android.os.Environment; -import android.os.Parcel; import android.os.ParcelFileDescriptor; -import android.os.StatFs; import android.text.TextUtils; import android.util.Log; import java.io.Closeable; import java.io.InterruptedIOException; -import java.util.Random; public class Utils { private static final String TAG = "Utils"; @@ -336,4 +331,9 @@ public class Utils { int length = Math.min(s.length(), MASK_STRING.length()); return IS_DEBUG_BUILD ? s : MASK_STRING.substring(0, length); } + + // This method should be ONLY used for debugging. + public static void debug(String message, Object ... args) { + Log.v(DEBUG_TAG, String.format(message, args)); + } } |