From 6ca60438a190c381e6218257740ebc967892588f Mon Sep 17 00:00:00 2001 From: Andy2 Date: Fri, 19 Aug 2011 18:54:21 -0700 Subject: [PATCH] no need for onClick listener when onDismiss listener does the same thing --- .../XWords4/src/org/eehouse/android/xw4/DlgDelegate.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java index 8f91ed2d1..abc2ee79f 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java @@ -299,12 +299,7 @@ public class DlgDelegate { dialog = new AlertDialog.Builder( m_activity ) .setTitle( R.string.no_dict_title ) .setMessage( R.string.no_dict_finish ) - .setPositiveButton( R.string.button_close_game, - new DialogInterface.OnClickListener() { - public void onClick( DialogInterface dlg, int item ) { - m_activity.finish(); - } - } ) + .setPositiveButton( R.string.button_close_game, null ) .create(); dialog.setOnDismissListener( new DialogInterface.OnDismissListener() {