no need for onClick listener when onDismiss listener does the same thing

This commit is contained in:
Andy2 2011-08-19 18:54:21 -07:00
parent 8f60ca5af3
commit 6ca60438a1

View file

@ -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() {