ColorDialog icon indicating copy to clipboard operation
ColorDialog copied to clipboard

Finish in the onClick

Open justdan0227 opened this issue 6 years ago • 0 comments

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();

justdan0227 avatar Apr 06 '18 16:04 justdan0227