mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
add new param
It's not the case that forcing send and showing UI go together.
This commit is contained in:
parent
0b2920102b
commit
e3a8bef3cb
7 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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)",
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -738,7 +738,7 @@ public class WiDirService extends XWService {
|
|||
|
||||
GameUtils.resendAllIf( XWApp.getContext(),
|
||||
CommsConnType.COMMS_CONN_P2P,
|
||||
false );
|
||||
false, false );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue