mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
remove unneeded paramter
This commit is contained in:
parent
256dda85c0
commit
d896670c21
2 changed files with 3 additions and 15 deletions
|
@ -33,23 +33,13 @@ public class DrawSelDelegate {
|
|||
m_origDrawable = view.getBackground();
|
||||
}
|
||||
|
||||
protected void showSelected( boolean selected, Drawable selDrawable )
|
||||
protected void showSelected( boolean selected )
|
||||
{
|
||||
if ( selected ) {
|
||||
m_origDrawable = m_view.getBackground();
|
||||
if ( null == selDrawable ) {
|
||||
m_view.setBackgroundColor( XWApp.SEL_COLOR );
|
||||
} else {
|
||||
m_view.setBackgroundDrawable( selDrawable );
|
||||
}
|
||||
} else {
|
||||
m_view.setBackgroundDrawable( m_origDrawable );
|
||||
}
|
||||
}
|
||||
|
||||
protected void showSelected( boolean selected )
|
||||
{
|
||||
showSelected( selected, null );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -56,7 +56,6 @@ public class ExpiringDelegate {
|
|||
private static Rect s_rect;
|
||||
private static Paint s_paint;
|
||||
private static float[] s_points;
|
||||
private static Drawable s_selDrawable;
|
||||
private DrawSelDelegate m_dsdel;
|
||||
|
||||
static {
|
||||
|
@ -65,7 +64,6 @@ public class ExpiringDelegate {
|
|||
s_paint.setStyle(Paint.Style.STROKE);
|
||||
s_paint.setStrokeWidth( 1 );
|
||||
s_points = new float[4*6];
|
||||
s_selDrawable = new ColorDrawable( XWApp.SEL_COLOR );
|
||||
}
|
||||
|
||||
public ExpiringDelegate( Context context, View view )
|
||||
|
@ -101,7 +99,7 @@ public class ExpiringDelegate {
|
|||
public void setSelected( boolean selected )
|
||||
{
|
||||
m_selected = selected;
|
||||
m_dsdel.showSelected( m_selected, s_selDrawable );
|
||||
m_dsdel.showSelected( m_selected );
|
||||
}
|
||||
|
||||
public void onDraw( Canvas canvas )
|
||||
|
|
Loading…
Add table
Reference in a new issue