Skip to content

Commit

Permalink
chain listener setup (simplify)
Browse files Browse the repository at this point in the history
  • Loading branch information
F43nd1r committed Mar 26, 2016
1 parent ad3c6c8 commit e6d2a8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/acra/dialog/CrashReportDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ protected void buildAndShowDialog(@Nullable Bundle savedInstanceState){
if (iconResourceId != ACRAConstants.DEFAULT_RES_VALUE) {
dialogBuilder.setIcon(iconResourceId);
}
dialogBuilder.setView(buildCustomView(savedInstanceState));
dialogBuilder.setPositiveButton(getText(getConfig().resDialogPositiveButtonText()), CrashReportDialog.this);
dialogBuilder.setNegativeButton(getText(getConfig().resDialogNegativeButtonText()), CrashReportDialog.this);
dialogBuilder.setView(buildCustomView(savedInstanceState))
.setPositiveButton(getText(getConfig().resDialogPositiveButtonText()), this)
.setNegativeButton(getText(getConfig().resDialogNegativeButtonText()), this);

mDialog = dialogBuilder.create();
mDialog.setCanceledOnTouchOutside(false);
Expand Down

0 comments on commit e6d2a8a

Please sign in to comment.