From bcad3540343bf874dd1f5eb659a17e590f83b0f0 Mon Sep 17 00:00:00 2001 From: chaychan <844738237@qq.com> Date: Sun, 25 Feb 2018 16:44:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B0=83=E7=94=A8setCurrentI?= =?UTF-8?q?tem=E6=96=B9=E6=B3=95=E9=80=89=E4=B8=AD=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E4=BA=86=E4=B8=A4=E4=B8=AA=E6=A0=87=E7=AD=BE=E9=83=BD=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/chaychan/library/BottomBarLayout.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/src/main/java/com/chaychan/library/BottomBarLayout.java b/library/src/main/java/com/chaychan/library/BottomBarLayout.java index abd8b9d..3488c20 100644 --- a/library/src/main/java/com/chaychan/library/BottomBarLayout.java +++ b/library/src/main/java/com/chaychan/library/BottomBarLayout.java @@ -128,8 +128,7 @@ private void resetState() { } public void setCurrentItem(int currentItem) { - mCurrentItem = currentItem; - mViewPager.setCurrentItem(mCurrentItem,mSmoothScroll); + mViewPager.setCurrentItem(currentItem,mSmoothScroll); } /**