mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
fix crash: adding wrong item to list
This commit is contained in:
parent
1139b1d5d1
commit
2073098a5e
1 changed files with 1 additions and 2 deletions
|
@ -53,7 +53,6 @@ public class XWConnAddrPreference extends DialogPreference {
|
|||
super( context, attrs );
|
||||
m_context = context;
|
||||
|
||||
// setWidgetLayoutResource( R.layout.conn_types_display );
|
||||
setDialogLayoutResource( R.layout.conn_types_display );
|
||||
|
||||
setNegativeButtonText( LocUtils.getString( context, R.string.button_cancel ) );
|
||||
|
@ -74,7 +73,7 @@ public class XWConnAddrPreference extends DialogPreference {
|
|||
CheckBox box = (CheckBox)layout.findViewById( R.id.inviter_check );
|
||||
box.setText( typ.longName( m_context ) );
|
||||
box.setChecked( m_curSet.contains( typ ) );
|
||||
list.addView( box );
|
||||
list.addView( layout ); // failed!!!
|
||||
|
||||
final CommsConnType typf = typ;
|
||||
box.setOnCheckedChangeListener( new OnCheckedChangeListener() {
|
||||
|
|
Loading…
Reference in a new issue