Skip to content

Commit 1a5cf32

Browse files
Fixed Readme
1 parent 55b5bf5 commit 1a5cf32

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ To Hide Cancel And Confirm Button:
211211
.setTitleText("Sweet!")
212212
.setContentText("Here's a custom image.")
213213
.setCustomImage(R.drawable.custom_img)
214-
.showConfirmButton(false) //to hide the confirm button set it to true
214+
.showConfirmButton(false) //to hide the confirm button set it to false
215215
.showCancelButton(false) //to hide the cancel button set it to false
216216
.show();
217217

@@ -349,8 +349,7 @@ And if you want to hide Title Text and Content Text of alert dialog
349349
sDialog
350350
.setTitleText("Deleted!")
351351
.setContentText("Your imaginary file has been deleted!")
352-
.setConfirmText("OK")
353-
.setConfirmClickListener(null)
352+
.setConfirmClickListener("OK", null)
354353
.changeAlertType(KAlertDialog.SUCCESS_TYPE);
355354
}
356355
})

0 commit comments

Comments
 (0)