Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexcepted Token #72

Open
erdemkosk opened this issue Sep 16, 2018 · 0 comments
Open

Unexcepted Token #72

erdemkosk opened this issue Sep 16, 2018 · 0 comments

Comments

@erdemkosk
Copy link

erdemkosk commented Sep 16, 2018

  • [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 and 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant