mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
no need for onClick listener when onDismiss listener does the same thing
This commit is contained in:
parent
8f60ca5af3
commit
6ca60438a1
1 changed files with 1 additions and 6 deletions
|
@ -299,12 +299,7 @@ public class DlgDelegate {
|
||||||
dialog = new AlertDialog.Builder( m_activity )
|
dialog = new AlertDialog.Builder( m_activity )
|
||||||
.setTitle( R.string.no_dict_title )
|
.setTitle( R.string.no_dict_title )
|
||||||
.setMessage( R.string.no_dict_finish )
|
.setMessage( R.string.no_dict_finish )
|
||||||
.setPositiveButton( R.string.button_close_game,
|
.setPositiveButton( R.string.button_close_game, null )
|
||||||
new DialogInterface.OnClickListener() {
|
|
||||||
public void onClick( DialogInterface dlg, int item ) {
|
|
||||||
m_activity.finish();
|
|
||||||
}
|
|
||||||
} )
|
|
||||||
.create();
|
.create();
|
||||||
|
|
||||||
dialog.setOnDismissListener( new DialogInterface.OnDismissListener() {
|
dialog.setOnDismissListener( new DialogInterface.OnDismissListener() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue