File tree 1 file changed +2
-3
lines changed
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:
211
211
.setTitleText("Sweet!")
212
212
.setContentText("Here's a custom image.")
213
213
.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
215
215
.showCancelButton(false) //to hide the cancel button set it to false
216
216
.show();
217
217
@@ -349,8 +349,7 @@ And if you want to hide Title Text and Content Text of alert dialog
349
349
sDialog
350
350
.setTitleText("Deleted!")
351
351
.setContentText("Your imaginary file has been deleted!")
352
- .setConfirmText("OK")
353
- .setConfirmClickListener(null)
352
+ .setConfirmClickListener("OK", null)
354
353
.changeAlertType(KAlertDialog.SUCCESS_TYPE);
355
354
}
356
355
})
You can’t perform that action at this time.
0 commit comments