File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 })
You can’t perform that action at this time.
0 commit comments