Open erdemkosk opened 6 years ago
@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(); }
It gives unexpected token syntax error
Reproduction Steps
Expected Result
Actual Result
It gives unexpected token syntax error