File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
src/main/java/com/chivorn/smartmaterialspinner Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ The best Android spinner library for your android application with more customiz
113
113
114
114
``` gradle
115
115
dependencies {
116
- implementation 'com.github.chivorns:smartmaterialspinner:1.1.4 '
116
+ implementation 'com.github.chivorns:smartmaterialspinner:1.1.5 '
117
117
}
118
118
```
119
119
Original file line number Diff line number Diff line change 5
5
LIBRARY_NAME = ' SmartMaterialSpinner'
6
6
PUBLISH_GROUP_ID = ' com.github.chivorns'
7
7
PUBLISH_ARTIFACT_ID = LIBRARY_NAME . toLowerCase()
8
- PUBLISH_VERSION = ' 1.1.4 '
8
+ PUBLISH_VERSION = ' 1.1.5 '
9
9
10
10
// Bintray
11
11
BINTRAY_REPO = ' maven'
@@ -32,7 +32,7 @@ android {
32
32
defaultConfig {
33
33
minSdkVersion 14
34
34
targetSdkVersion 28
35
- versionCode 19
35
+ versionCode 20
36
36
versionName " $PUBLISH_VERSION "
37
37
38
38
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
Original file line number Diff line number Diff line change @@ -794,8 +794,14 @@ public void setSelection(int position) {
794
794
if (isShowing && !isSearchable && hint != null ) {
795
795
position -= 1 ;
796
796
}
797
- SmartMaterialSpinner .super .setSelection (hint != null ? position + 1 : position );
798
- checkReSelectable (position );
797
+ final int finalPosition = position ;
798
+ this .post (new Runnable () {
799
+ @ Override
800
+ public void run () {
801
+ SmartMaterialSpinner .super .setSelection (hint != null ? finalPosition + 1 : finalPosition , false );
802
+ checkReSelectable (finalPosition );
803
+ }
804
+ });
799
805
}
800
806
801
807
@ Override
You can’t perform that action at this time.
0 commit comments