checkstyle
authorNikita Kozlov <nikita@mbdsys.com>
Tue, 29 Dec 2009 17:31:31 +0100
changeset 610 663a834e3830
parent 609 47e559a5410a
child 611 d5dfc657bfbe
checkstyle
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");