javiersantos / javiersantos/MaterialStyledDialogs

Unexcepted Token

Open
#72 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.2k
Forks
151
PR merge metrics
No merged PRs in 30d

Description

- [ok] I have verified there are no duplicate active or recent bugs, questions, or requests.
- [ok] I have verified that I am using the latest version of MaterialStyledDialogs.
- [ok] I have given my issue a non-generic title.
- [ok] I have read over the [README](https://github.com/javiersantos/MaterialStyledDialogs/blob/master/README.md) and [Wiki](https://github.com/javiersantos/MaterialStyledDialogs/wiki) (before asking questions on how to do something).

###### Reproduction Steps

```
@Override
public void onBackPressed() {
new MaterialStyledDialog.Builder(this)
.setTitle("You pressed Back!")
.setDescription("Are you sure you want to disconnect?")
.setHeaderColor(R.color.colorPrimary)
.setIcon(R.drawable.app)
.setPositiveText("Yes!")
.onPositive(new MaterialDialog.SingleButtonCallback() {
@Override
public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
Log.d("MaterialStyledDialogs", "Do something!");
})
.setNegativeText("No!")
.withIconAnimation(true).show();
}

```
###### Expected Result

###### Actual Result
It gives unexpected token syntax error

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the provided onBackPressed reproduction and capture the exact compiler error and line; the issue names no repository file or test. Done means the syntax error is reproduced and the example compiles, with the resulting dialog behavior confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.