From ef673550fdf6af6cef20cd875dee1bfba2b365e3 Mon Sep 17 00:00:00 2001 From: xuchang <123286473@qq.com> Date: Thu, 18 Nov 2021 18:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=A6=82=E6=9E=9CNiceSpinner?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEselectedTextFormatter,setSelectedIndex()?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BC=9A=E8=B0=83=E7=94=A8=E4=B8=A4=E6=AC=A1?= =?UTF-8?q?format()=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=AF=B9=E5=BA=94i?= =?UTF-8?q?ssues:https://gitee.com/hihopeorg/nice-spinner/issues/I4IUM2=3F?= =?UTF-8?q?from=3Dproject-issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/src/main/java/org/angmarch/views/NiceSpinner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/org/angmarch/views/NiceSpinner.java b/library/src/main/java/org/angmarch/views/NiceSpinner.java index d255dd7..2f37639 100644 --- a/library/src/main/java/org/angmarch/views/NiceSpinner.java +++ b/library/src/main/java/org/angmarch/views/NiceSpinner.java @@ -231,7 +231,7 @@ public class NiceSpinner extends DirectionalLayout implements Component.TouchEve if (position >= 0 && position <= adapter.getCount()) { adapter.setSelectedIndex(position); selectedIndex = position; - setTextInternal(selectedTextFormatter.format(adapter.getItemInDataset(position))); + setTextInternal(adapter.getItemInDataset(position)); } else { throw new IllegalArgumentException("Position must be lower than adapter count!"); } -- Gitee