remove unused ivar; override setEnabled to dis/enable delete button

This commit is contained in:
Andy2 2010-10-29 07:40:41 -07:00
parent 30b6a6b54e
commit 814dd89458

View file

@ -30,7 +30,6 @@ import android.graphics.Rect;
public class XWListItem extends LinearLayout {
private int m_position;
private ImageButton m_button;
private Context m_context;
DeleteCallback m_cb;
@ -64,4 +63,15 @@ public class XWListItem extends LinearLayout {
} );
button.setVisibility( View.VISIBLE );
}
@Override
public void setEnabled( boolean enabled )
{
ImageButton button = (ImageButton)getChildAt( 1 );
button.setEnabled( enabled );
// calling super here means the list item can't be opened for
// the user to inspect data. Might want to reconsider this.
// PENDING
super.setEnabled( enabled );
}
}