javiersantos / MaterialStyledDialogs

A library that shows a beautiful and customizable Material-based dialog with header. API 14+ required.
Apache License 2.0
1.17k stars 155 forks source link

Unexcepted Token #72

Open erdemkosk opened 6 years ago

erdemkosk commented 6 years ago
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