summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/util
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-04-24 16:03:56 -0700
committerJohn Reck <jreck@google.com>2012-04-24 16:06:40 -0700
commitdedcee2bbf80f32165398af66c5d72e886c102e8 (patch)
treed62aedc7914c1fba7be80ce1ebdb5fc2070a957e /src/com/android/browser/util
parent821e426ad369be3d6decb51245dd1c3df653a0b7 (diff)
downloadpackages_apps_Browser-dedcee2bbf80f32165398af66c5d72e886c102e8.zip
packages_apps_Browser-dedcee2bbf80f32165398af66c5d72e886c102e8.tar.gz
packages_apps_Browser-dedcee2bbf80f32165398af66c5d72e886c102e8.tar.bz2
Remove debug code
Change-Id: I53236e23990e996b86944214b45a9af014b296f6
Diffstat (limited to 'src/com/android/browser/util')
-rw-r--r--src/com/android/browser/util/ThreadedCursorAdapter.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/com/android/browser/util/ThreadedCursorAdapter.java b/src/com/android/browser/util/ThreadedCursorAdapter.java
index d0bf715..b70ca36 100644
--- a/src/com/android/browser/util/ThreadedCursorAdapter.java
+++ b/src/com/android/browser/util/ThreadedCursorAdapter.java
@@ -37,7 +37,6 @@ public abstract class ThreadedCursorAdapter<T> extends BaseAdapter {
private static final String LOGTAG = "BookmarksThreadedAdapter";
private static final boolean DEBUG = false;
- private static boolean sEnableBitmapRecycling = true;
private Context mContext;
private Object mCursorLock = new Object();
@@ -49,13 +48,6 @@ public abstract class ThreadedCursorAdapter<T> extends BaseAdapter {
private boolean mHasCursor;
private long mGeneration;
- static {
- // TODO: Remove this once recycling is either stabilized or scrapped
- sEnableBitmapRecycling = SystemProperties
- .getBoolean("com.android.browser.recycling", sEnableBitmapRecycling);
- Log.d(LOGTAG, "Bitmap recycling enabled: " + sEnableBitmapRecycling);
- }
-
private class LoadContainer {
WeakReference<View> view;
int position;
@@ -160,9 +152,7 @@ public abstract class ThreadedCursorAdapter<T> extends BaseAdapter {
if (c == null || c.isClosed()) {
return;
}
- final T recycleObject = sEnableBitmapRecycling
- ? container.bind_object : null;
- container.bind_object = getRowObject(c, recycleObject);
+ container.bind_object = getRowObject(c, container.bind_object);
}
mHandler.obtainMessage(position, container).sendToTarget();
}