Skip to content

Commit c9fc215

Browse files
bug fixed
1 parent 5d42aa1 commit c9fc215

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.idea/caches/gradle_models.ser

-6 Bytes
Binary file not shown.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ Provides you easily create various pop-up dialogs that you can use.
4545

4646
> FastDialogBuilder Functions
4747
```java
48-
progressText(String progressString) // sets progress dialog text
48+
progressText(String progressString) // set progress dialog text
4949
setTitleText(String title) // set fast-dialog title
5050
hideTitle() //hide title
51-
hideIcon() // hide to ImageView gif on fast-dialog
51+
hideIcon() // hide to danger gif on fast-dialog
5252
setText(String text) // set fast-dialog TextView
5353
setHint(String hint) // set fast-dialog EditText's hint
5454
negativeText(String negative) // set negative button on fast-dialog and set button text

fastdialog/src/main/java/karpuzoglu/enes/com/fastdialog/FastDialogBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ private FastDialogBuilder createDialog(Type type){
8787
btCancel.setOnClickListener(v -> {
8888
if (negativeClick != null)
8989
negativeClick.onClick(v);
90-
dialog.dismiss();
90+
else dialog.dismiss();
9191
});
9292
btOk.setOnClickListener(v -> {
9393
if (positiveClick != null)
9494
positiveClick.onClick(v);
95-
dialog.dismiss();
95+
else dialog.dismiss();
9696
});
9797
btOk.setBackground(getShape());
9898
btCancel.setBackground(getShape());

0 commit comments

Comments
 (0)