add new param

It's not the case that forcing send and showing UI go together.
This commit is contained in:
Eric House 2017-06-20 07:49:01 -07:00
parent 0b2920102b
commit e3a8bef3cb
7 changed files with 8 additions and 8 deletions

View file

@ -405,7 +405,7 @@ public class BTService extends XWService {
postEvent( evt );
if ( cameOn ) {
GameUtils.resendAllIf( this, CommsConnType.COMMS_CONN_BT,
false );
false, false );
} else {
ConnStatusHandler.updateStatus( this, null,
CommsConnType.COMMS_CONN_BT,

View file

@ -434,9 +434,8 @@ public class GameUtils {
}
public static void resendAllIf( Context context, CommsConnType filter,
boolean force )
boolean force, boolean showUI )
{
boolean showUI = force;
long now = Utils.getCurSeconds();
if ( !force ) {

View file

@ -1533,7 +1533,7 @@ public class GamesListDelegate extends ListDelegateBase
// There's no selection for these items, so nothing to clear
case R.id.games_menu_resend:
GameUtils.resendAllIf( m_activity, null, true );
GameUtils.resendAllIf( m_activity, null, true, true );
break;
case R.id.games_menu_newgame_solo:
handleNewGame( true );

View file

@ -252,7 +252,7 @@ public class NetStateCache {
if ( s_netAvail ) {
CommsConnType typ = CommsConnType
.COMMS_CONN_RELAY;
GameUtils.resendAllIf( context, typ, false );
GameUtils.resendAllIf( context, typ, false, false );
}
}
};

View file

@ -265,7 +265,7 @@ public class Perms23 {
// Perm-by-Perm, but I'm in a hurry.
if ( granted && perm == Perm.SEND_SMS ) {
GameUtils.resendAllIf( context, CommsConnType.COMMS_CONN_SMS,
true );
true, true );
}
// Log.d( TAG, "calling %s.onPermissionResult(%s, %b)",

View file

@ -47,7 +47,8 @@ public class SMSResendReceiver extends BroadcastReceiver {
@Override
public void onReceive( Context context, Intent intent )
{
GameUtils.resendAllIf( context, CommsConnType.COMMS_CONN_SMS, true );
GameUtils.resendAllIf( context, CommsConnType.COMMS_CONN_SMS, true,
BuildConfig.DEBUG );
setTimer( context, true );
}

View file

@ -738,7 +738,7 @@ public class WiDirService extends XWService {
GameUtils.resendAllIf( XWApp.getContext(),
CommsConnType.COMMS_CONN_P2P,
false );
false, false );
}
}