Skip to content

Finish in the onClick #12

@justdan0227

Description

@justdan0227

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions