summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/java/android/widget/SimpleCursorAdapter.java10
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) {