ColorDialog
ColorDialog copied to clipboard
Finish in the onClick
Any ideas why I can't do this? The app does not crash but I get a leak message in logcat after the finish:
new PromptDialog(this)
.setDialogType(PromptDialog.DIALOG_TYPE_WARNING)
.setCancelable(false)
.setTitleText("Alert") // Shows error ...why?
.setContentText("Are you there")
.setPositiveListener("YES", new PromptDialog.OnPositiveListener()
{
@Override
public void onClick(PromptDialog dialog) {
dialog.dismiss();
finish();
}
}).show();