Skip to content

Commit 19725c4

Browse files
committed
修复多个switch共同使用时,最后一个不受控的问题
Signed-off-by: 2534290808 <[email protected]>
1 parent 5828299 commit 19725c4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020

2121
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2222
hs_err_pid*
23+
.idea/

android/src/main/java/com/lmy/switchbutton/Switch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public void setChecked(boolean checked) {
462462
postInvalidate();
463463
return;
464464
}
465-
toggle(enableEffect, false);
465+
//toggle(enableEffect, false);
466466
}
467467

468468
@Override

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-switchbutton",
3-
"version": "0.1.8",
3+
"version": "0.2.0",
44
"description": "一个IOS样式的android/ios平台的switch组件",
55
"main": "Switch.js",
66
"scripts": {

0 commit comments

Comments
 (0)