diff options
author | Romain Guy <> | 2009-03-26 14:51:52 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-26 14:51:52 -0700 |
commit | 6ddfec1b193fb0ee9c55ae1f0648d6fcd66e7cd1 (patch) | |
tree | 97566d4b46a8c003f8bb6399c2791713b730aeed | |
parent | 3b1812042d02c38bff9470988a7f740a16f65a33 (diff) | |
download | frameworks_base-6ddfec1b193fb0ee9c55ae1f0648d6fcd66e7cd1.zip frameworks_base-6ddfec1b193fb0ee9c55ae1f0648d6fcd66e7cd1.tar.gz frameworks_base-6ddfec1b193fb0ee9c55ae1f0648d6fcd66e7cd1.tar.bz2 |
Automated import from //branches/donutburger/...@142990,142990
-rw-r--r-- | core/java/android/widget/SimpleCursorAdapter.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/widget/SimpleCursorAdapter.java b/core/java/android/widget/SimpleCursorAdapter.java index c1595ea..c1bcd42 100644 --- a/core/java/android/widget/SimpleCursorAdapter.java +++ b/core/java/android/widget/SimpleCursorAdapter.java @@ -145,17 +145,17 @@ public class SimpleCursorAdapter extends ResourceCursorAdapter { for (int i = 0; i < count; i++) { final View v = holder[i]; if (v != null) { - String text = cursor.getString(from[i]); - if (text == null) { - text = ""; - } - boolean bound = false; if (binder != null) { bound = binder.setViewValue(v, cursor, from[i]); } if (!bound) { + String text = cursor.getString(from[i]); + if (text == null) { + text = ""; + } + if (v instanceof TextView) { setViewText((TextView) v, text); } else if (v instanceof ImageView) { |