mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +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 {
|
public class XWListItem extends LinearLayout {
|
||||||
private int m_position;
|
private int m_position;
|
||||||
private ImageButton m_button;
|
|
||||||
private Context m_context;
|
private Context m_context;
|
||||||
DeleteCallback m_cb;
|
DeleteCallback m_cb;
|
||||||
|
|
||||||
|
@ -64,4 +63,15 @@ public class XWListItem extends LinearLayout {
|
||||||
} );
|
} );
|
||||||
button.setVisibility( View.VISIBLE );
|
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…
Add table
Reference in a new issue