# HG changeset patch # User Nikita Kozlov # Date 1262104291 -3600 # Node ID 663a834e3830c72742d8bc04a8e76b0b42d5be62 # Parent 47e559a5410a74008d0e2c61949caa7e4eb96efe checkstyle diff -r 47e559a5410a -r 663a834e3830 src/com/beem/project/beem/utils/BeemBroadcastReceiver.java --- a/src/com/beem/project/beem/utils/BeemBroadcastReceiver.java Tue Dec 29 17:31:05 2009 +0100 +++ b/src/com/beem/project/beem/utils/BeemBroadcastReceiver.java Tue Dec 29 17:31:31 2009 +0100 @@ -40,7 +40,7 @@ Flavien Astraud, November 26, 2009 Head of the EIP Laboratory. -*/ + */ package com.beem.project.beem.utils; import android.app.Activity; @@ -79,13 +79,13 @@ // if (!intent.getBooleanExtra("normally", false)) // context.startActivity(new Intent(context, Login.class)); if (intent.getAction().equals(BEEM_CONNECTION_CLOSED)) { - CharSequence message = intent.getCharSequenceExtra("message"); - Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); - if (context instanceof Activity) { - Activity act = (Activity) context; - act.finish(); - // The service will be unbinded in the destroy of the activity. - } + CharSequence message = intent.getCharSequenceExtra("message"); + Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); + if (context instanceof Activity) { + Activity act = (Activity) context; + act.finish(); + // The service will be unbinded in the destroy of the activity. + } } else if (intent.getAction().equals(ConnectivityManager.CONNECTIVITY_ACTION)) { if (intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false)) { Log.d("Broadcast", "stopService");