Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a961dc5a authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Correctly bind spinner data to TextView. Bug...

Merge "Correctly bind spinner data to TextView. Bug http://code.google.com/p/android/issues/detail?id=7251"
parents 23aea6df b187a847
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -172,6 +172,10 @@ public class SimpleAdapter extends BaseAdapter implements Filterable {
                    if (v instanceof Checkable) {
                        if (data instanceof Boolean) {
                            ((Checkable) v).setChecked((Boolean) data);
                        } else if (v instanceof TextView) {
                            // Note: keep the instanceof TextView check at the bottom of these
                            // ifs since a lot of views are TextViews (e.g. CheckBoxes).
                            setViewText((TextView) v, text);
                        } else {
                            throw new IllegalStateException(v.getClass().getName() +
                                    " should be bound to a Boolean, not a " +