codepath / codepath/android_guides

Wiki using DialogFragment - Example does not compile

Open
#319 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
28.3k
Forks
6.2k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.