mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
remove unused ivar; override setEnabled to dis/enable delete button
This commit is contained in:
parent
30b6a6b54e
commit
814dd89458
1 changed files with 11 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue