android_guides icon indicating copy to clipboard operation
android_guides copied to clipboard

Wiki using DialogFragment - Example does not compile

Open recodyx opened this issue 7 years ago • 0 comments

Hello, this example does not compile. there is no isShowing method in DialogInterface.

https://github.com/codepath/android_guides/wiki/Using-DialogFragment

alertDialogBuilder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
    @Override
    public void onClick(DialogInterface dialog, int which) {
        if (dialog != null && dialog.isShowing()) { 
            dialog.dismiss();
        }
    }
});

pls check this SO-Question: https://stackoverflow.com/questions/48590613/android-studio-cannot-resolve-method-isshowing

recodyx avatar Feb 02 '18 22:02 recodyx