Skip to content

Commit 772167a

Browse files
committed
fixed bug
1 parent 9e5c7c0 commit 772167a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ allprojects {
2222

2323
```
2424
dependencies {
25-
compile 'com.github.fccaikai:BottomMenuTutorial:1.0.2'
25+
compile 'com.github.fccaikai:BottomMenuTutorial:1.0.3'
2626
}
2727
```
2828

bottomlib/src/main/java/com/kcode/bottomlib/BottomDialog.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static BottomDialog newInstance(String titleText,String cancelText, Strin
4242
return fragment;
4343
}
4444

45+
private boolean isAnimation = false;
4546
private String mTitle;
4647
private String mCancel;
4748
private String[] items;
@@ -127,9 +128,14 @@ private void initData() {
127128

128129
@Override
129130
public void dismiss() {
131+
if (isAnimation) {
132+
return;
133+
}
134+
isAnimation = true;
130135
AnimationUtils.slideToDown(mRootView, new AnimationUtils.AnimationListener() {
131136
@Override
132137
public void onFinish() {
138+
isAnimation = false;
133139
BottomDialog.super.dismiss();
134140
}
135141
});

0 commit comments

Comments
 (0)