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

Commit b5d9132d authored by Daisuke Miyakawa's avatar Daisuke Miyakawa
Browse files

Fix ArrayAdapter, which was fixed in cupcake_dcm and kept fixed until donut,...

Fix ArrayAdapter, which was fixed in cupcake_dcm and kept fixed until donut, but is broken in eclair.

Original internal Change: 147459-p9
parent afefa49a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -348,7 +348,12 @@ public class ArrayAdapter<T> extends BaseAdapter implements Filterable {
                    "ArrayAdapter requires the resource ID to be a TextView", e);
        }

        text.setText(getItem(position).toString());
        T item = getItem(position);
        if (item instanceof CharSequence) {
            text.setText((CharSequence)item);
        } else {
            text.setText(item.toString());
        }

        return view;
    }