Skip to content

Commit 6b2441a

Browse files
committed
1 parent c948bc5 commit 6b2441a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎library/WheelPicker/src/main/java/cn/qqtheme/framework/picker/SinglePicker.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
*
2323
* @author 李玉江[QQ:1032694760]
2424
* @since 2015/9/29
25+
* @param 需要重写泛型T的toString方法作为显示的名称
2526
*/
2627
public class SinglePicker<T> extends WheelPicker {
2728
private static final int ITEM_WIDTH_UNKNOWN = -99;
@@ -74,6 +75,7 @@ public void setItems(List<T> items) {
7475
return;
7576
}
7677
this.items = items;
78+
itemStrings.clear();
7779
for (T item : items) {
7880
itemStrings.add(formatToString(item));
7981
}

0 commit comments

Comments
 (0)