- builder.setTitle(R.string.crash_dialog_title).setView(view)
- .setPositiveButton(R.string.btn_send_crash_report,
- new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which) {
- // still nothing
- Intent email = new Intent(Intent.ACTION_SEND);
- email.putExtra(Intent.EXTRA_EMAIL,
- new String[]{Globals.developerEmail});
- email.putExtra(Intent.EXTRA_SUBJECT, "MoLe crash report");
- email.putExtra(Intent.EXTRA_TEXT, mCrashReportText);
- email.setType("message/rfc822");
- startActivity(Intent.createChooser(email,
- getResources().getString(R.string.send_crash_via)));
- }
- })
- .setNegativeButton(R.string.btn_not_now, new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which) {
- CrashReportDialogFragment.this.getDialog().cancel();
- }
- })
- .setNeutralButton(R.string.btn_show_report, new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which) {
- }
- });
+ builder.setTitle(R.string.crash_dialog_title)
+ .setView(view)
+ .setPositiveButton(R.string.btn_send_crash_report, (dialog, which) -> {
+ // still nothing
+ Intent email = new Intent(Intent.ACTION_SEND);
+ email.putExtra(Intent.EXTRA_EMAIL, new String[]{Globals.developerEmail});
+ email.putExtra(Intent.EXTRA_SUBJECT, "MoLe crash report");
+ email.putExtra(Intent.EXTRA_TEXT, mCrashReportText);
+ email.setType("message/rfc822");
+ startActivity(Intent.createChooser(email,
+ getResources().getString(R.string.send_crash_via)));
+ })
+ .setNegativeButton(R.string.btn_not_now,
+ (dialog, which) -> CrashReportDialogFragment.this.getDialog()
+ .cancel())
+ .setNeutralButton(R.string.btn_show_report, (dialog, which) -> {
+ });