mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
cleanup: there's no solo network status any more
This commit is contained in:
parent
d3318f6631
commit
032d073d6f
1 changed files with 18 additions and 27 deletions
|
@ -54,8 +54,6 @@ public class ConnStatusHandler {
|
||||||
public Handler getHandler();
|
public Handler getHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
// private static final int GREEN = 0x7F00FF00;
|
|
||||||
// private static final int RED = 0x7FFF0000;
|
|
||||||
private static final int GREEN = 0xFF00FF00;
|
private static final int GREEN = 0xFF00FF00;
|
||||||
private static final int RED = 0xFFFF0000;
|
private static final int RED = 0xFFFF0000;
|
||||||
private static final int BLACK = 0xFF000000;
|
private static final int BLACK = 0xFF000000;
|
||||||
|
@ -310,14 +308,9 @@ public class ConnStatusHandler {
|
||||||
Rect rect = new Rect( s_rect );
|
Rect rect = new Rect( s_rect );
|
||||||
int quarterHeight = rect.height() / 4;
|
int quarterHeight = rect.height() / 4;
|
||||||
|
|
||||||
if ( isSolo && SOLO_NOGREEN ) {
|
|
||||||
// paint a black background for the icon
|
|
||||||
s_fillPaint.setColor( BLACK );
|
|
||||||
canvas.drawRect( rect, s_fillPaint );
|
|
||||||
} else {
|
|
||||||
int saveTop = rect.top;
|
int saveTop = rect.top;
|
||||||
SuccessRecord record;
|
SuccessRecord record;
|
||||||
boolean enabled = isSolo || anyTypeEnabled( context, connTypes );
|
boolean enabled = anyTypeEnabled( context, connTypes );
|
||||||
|
|
||||||
// Do the background coloring. Top quarter first
|
// Do the background coloring. Top quarter first
|
||||||
rect.bottom = rect.top + quarterHeight;
|
rect.bottom = rect.top + quarterHeight;
|
||||||
|
@ -336,7 +329,6 @@ public class ConnStatusHandler {
|
||||||
drawQuarter( canvas, res, rect, connTypes, enabled, true );
|
drawQuarter( canvas, res, rect, connTypes, enabled, true );
|
||||||
|
|
||||||
rect.top = saveTop;
|
rect.top = saveTop;
|
||||||
}
|
|
||||||
|
|
||||||
// Center the icon in the remaining (vertically middle) rect
|
// Center the icon in the remaining (vertically middle) rect
|
||||||
rect.top += quarterHeight;
|
rect.top += quarterHeight;
|
||||||
|
@ -349,8 +341,7 @@ public class ConnStatusHandler {
|
||||||
rect.top = center - halfMin;
|
rect.top = center - halfMin;
|
||||||
rect.bottom = center + halfMin;
|
rect.bottom = center + halfMin;
|
||||||
|
|
||||||
int iconID = isSolo
|
int iconID = R.drawable.multigame__gen;
|
||||||
? R.drawable.sologame__gen : R.drawable.multigame__gen;
|
|
||||||
drawIn( canvas, res, iconID, rect );
|
drawIn( canvas, res, iconID, rect );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue