src/com/beem/project/beem/utils/BeemBroadcastReceiver.java
changeset 1036 42cfd51dc57e
parent 934 6b30719f4de6
equal deleted inserted replaced
1011:b825f2773bd6 1036:42cfd51dc57e
    84 	    }
    84 	    }
    85 	} else if (intentAction.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
    85 	} else if (intentAction.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
    86 	    if (intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false)) {
    86 	    if (intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false)) {
    87 		Toast.makeText(context, context.getString(R.string.BeemBroadcastReceiverDisconnect),
    87 		Toast.makeText(context, context.getString(R.string.BeemBroadcastReceiverDisconnect),
    88 		    Toast.LENGTH_SHORT).show();
    88 		    Toast.LENGTH_SHORT).show();
    89 		context.stopService(new Intent(context, BeemService.class));
    89 		// Disable stopping the service if it was not explicitely requested by the user
       
    90 		// by changing status or disconnect
       
    91 //		context.stopService(new Intent(context, BeemService.class));
    90 	    }
    92 	    }
    91 	}
    93 	}
    92     }
    94     }
    93 }
    95 }