comment out some logging and the annoying toast-on-relay-check

This commit is contained in:
Andy2 2011-02-21 06:50:54 -08:00
parent 353832a7ca
commit 21d46957be

View file

@ -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 );