mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
comment out some logging and the annoying toast-on-relay-check
This commit is contained in:
parent
353832a7ca
commit
21d46957be
1 changed files with 7 additions and 5 deletions
|
@ -47,9 +47,11 @@ public class RelayReceiver extends BroadcastReceiver {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive( Context context, Intent intent )
|
public void onReceive( Context context, Intent intent )
|
||||||
{
|
{
|
||||||
Utils.logf( "RelayReceiver::onReceive()" );
|
// Utils.logf( "RelayReceiver::onReceive()" );
|
||||||
Toast.makeText(context, "RelayReceiver: fired",
|
// if ( XWConstants.s_showProxyToast ) {
|
||||||
Toast.LENGTH_SHORT).show();
|
// Toast.makeText(context, "RelayReceiver: fired",
|
||||||
|
// Toast.LENGTH_SHORT).show();
|
||||||
|
// }
|
||||||
|
|
||||||
// Do the actual background work. Could do it here, but only
|
// Do the actual background work. Could do it here, but only
|
||||||
// if we're sure to finish in 10 seconds and if it'll always
|
// if we're sure to finish in 10 seconds and if it'll always
|
||||||
|
@ -63,7 +65,7 @@ public class RelayReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
private void query_relay( Context context )
|
private void query_relay( Context context )
|
||||||
{
|
{
|
||||||
Utils.logf( "query_relay" );
|
// Utils.logf( "query_relay" );
|
||||||
String[] relayIDs = NetUtils.QueryRelay( context );
|
String[] relayIDs = NetUtils.QueryRelay( context );
|
||||||
|
|
||||||
// At this point any changes have already been made to the
|
// At this point any changes have already been made to the
|
||||||
|
@ -115,7 +117,7 @@ public class RelayReceiver extends BroadcastReceiver {
|
||||||
PendingIntent pi = PendingIntent.getBroadcast( context, 0, intent, 0 );
|
PendingIntent pi = PendingIntent.getBroadcast( context, 0, intent, 0 );
|
||||||
|
|
||||||
if ( interval_millis > 0 ) {
|
if ( interval_millis > 0 ) {
|
||||||
Utils.logf( "setting alarm for %d millis", interval_millis );
|
// Utils.logf( "setting alarm for %d millis", interval_millis );
|
||||||
am.setInexactRepeating( AlarmManager.ELAPSED_REALTIME_WAKEUP,
|
am.setInexactRepeating( AlarmManager.ELAPSED_REALTIME_WAKEUP,
|
||||||
0, // first firing
|
0, // first firing
|
||||||
interval_millis, pi );
|
interval_millis, pi );
|
||||||
|
|
Loading…
Add table
Reference in a new issue