rename file

And change something that was using custom layout for just its checkbox
to just use a checkbox.
This commit is contained in:
Eric House 2016-12-15 07:28:44 -08:00
parent f8bba60798
commit 9f7975d471
3 changed files with 4 additions and 8 deletions

View file

@ -80,12 +80,10 @@ public class ConnViaViewLayout extends LinearLayout {
CommsConnTypeSet supported = CommsConnTypeSet.getSupported( context );
for ( CommsConnType typ : supported.getTypes() ) {
LinearLayout item = (LinearLayout)
LocUtils.inflate( context, R.layout.inviter_item );
CheckBox box = (CheckBox)item.findViewById( R.id.inviter_check );
CheckBox box = new CheckBox( context );
box.setText( typ.longName( context ) );
box.setChecked( m_curSet.contains( typ ) );
list.addView( item );
list.addView( box );
final CommsConnType typf = typ;
box.setOnCheckedChangeListener( new OnCheckedChangeListener() {

View file

@ -272,14 +272,12 @@ abstract class InviteDelegate extends ListDelegateBase
ViewGroup parent )
{
final InviterItem item = m_items[position];
final LinearLayout layout = (LinearLayout)inflate( R.layout.inviter_item );
final LinearLayout layout = (LinearLayout)
inflate( R.layout.inviter_item_frame );
CheckBox box = (CheckBox)layout.findViewById( R.id.inviter_check );
// box.setText( m_devNames[position] );
// box.setTag( addr );
// Give subclass a chance to install and populate its view
FrameLayout frame = (FrameLayout)layout.findViewById( R.id.frame );
Assert.assertNotNull( frame );
View child = inflate( m_itemId );
frame.addView( child );
onChildAdded( child, m_items[position] );