Don't show network status icon, nor respond to taps, for standalone

games.
This commit is contained in:
Eric House 2015-05-19 06:51:45 -07:00
parent f08c0c8b5e
commit ac2d46d109
9 changed files with 247 additions and 268 deletions

File diff suppressed because it is too large Load diff

View file

@ -1973,9 +1973,6 @@
<!-- -->
<string name="game_list_tmp">Building game summary…</string>
<!-- -->
<string name="connstat_nonet">This is a standalone game. There is
no network status.</string>
<!-- -->
<string name="connstat_net_fmt">Network status for game connected via
%1$s:</string>

View file

@ -1710,9 +1710,6 @@
<!-- -->
<string name="game_list_tmp">Gnidliub emag yrammus…</string>
<!-- -->
<string name="connstat_nonet">Siht si a enoladnats emag. Ereht si
on krowten sutats.</string>
<!-- -->
<string name="connstat_net_fmt">Krowten sutats rof emag detcennoc aiv
%1$s:</string>
<!-- -->

View file

@ -1710,9 +1710,6 @@
<!-- -->
<string name="game_list_tmp">BUILDING GAME SUMMARY…</string>
<!-- -->
<string name="connstat_nonet">THIS IS A STANDALONE GAME. THERE IS
NO NETWORK STATUS.</string>
<!-- -->
<string name="connstat_net_fmt">NETWORK STATUS FOR GAME CONNECTED VIA
%1$s:</string>
<!-- -->

View file

@ -2485,11 +2485,6 @@ illimités ? Annulez si vous n\'êtes pas sûr.</string>
<!--<string name="game_list_tmp">Building game summary…</string>-->
<string name="game_list_tmp">Création du résumé de la partie…</string>
<!-- -->
<!--<string name="connstat_nonet">This is a standalone game. There is
no network status.</string>-->
<string name="connstat_nonet">Cette partie est autonome. Il n\'y a pas
d\'état du réseau.</string>
<!-- -->
<!--<string name="connstat_net_fmt">Network status for game connected via
%1$s:</string>-->

View file

@ -1723,9 +1723,6 @@
<!-- -->
<string name="game_list_tmp">Carregando resumo do jogo...</string>
<!-- -->
<string name="connstat_nonet">Este é um jogo local. Não
há informações de rede.</string>
<!-- -->
<string name="connstat_net_fmt">Informações de rede para jogo conectado
por %1$s:</string>
<!-- -->

View file

@ -1212,9 +1212,6 @@
<string name="connstat_net_fmt">XLATE ME: Network status for game connected via
%1$s:</string>
<!-- -->
<string name="connstat_nonet">XLATE ME: This is a standalone game. There is
no network status.</string>
<!-- -->
<string name="game_list_tmp">XLATE ME: Building game summary…</string>
<!-- board menu for small devices only -->
<string name="board_menu_dict">XLATE ME: Browse wordlist</string>

View file

@ -1251,13 +1251,15 @@ public class BoardDelegate extends DelegateBase
public void onStatusClicked()
{
final String msg = ConnStatusHandler.getStatusText( m_activity, m_connTypes );
post( new Runnable() {
public void run() {
m_dlgBytes = msg;
m_dlgTitle = R.string.info_title;
showDialog( DlgID.DLG_CONNSTAT );
}
} );
if ( null != msg ) {
post( new Runnable() {
public void run() {
m_dlgBytes = msg;
m_dlgTitle = R.string.info_title;
showDialog( DlgID.DLG_CONNSTAT );
}
} );
}
}
public Handler getHandler()

View file

@ -176,7 +176,7 @@ public class ConnStatusHandler {
{
String msg;
if ( null == connTypes || 0 == connTypes.size() ) {
msg = LocUtils.getString( context, R.string.connstat_nonet );
msg = null;
} else {
StringBuffer sb = new StringBuffer();
String tmp;
@ -294,8 +294,8 @@ public class ConnStatusHandler {
public static void draw( Context context, Canvas canvas, Resources res,
CommsConnTypeSet connTypes, boolean isSolo )
{
synchronized( s_lockObj ) {
if ( null != s_rect ) {
if ( !isSolo && null != s_rect ) {
synchronized( s_lockObj ) {
Rect rect = new Rect( s_rect );
int quarterHeight = rect.height() / 4;