summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2016-12-07 13:23:59 -0500
committerJoey Grover <joeygrover@gmail.com>2016-12-07 13:23:59 -0500
commit336d983c05f9dd884d8f281a8c6eefaa1b3a7d59 (patch)
tree42996240d169e8e48395286af862ad9bcd76ea82
parent65dc8c5150557577973f145ce98415633f34b7a7 (diff)
downloadsdl_android-336d983c05f9dd884d8f281a8c6eefaa1b3a7d59.tar.gz
Remove call to RSVP server during bluetooth state change
-rw-r--r--sdl_android_lib/src/com/smartdevicelink/transport/SdlBroadcastReceiver.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/sdl_android_lib/src/com/smartdevicelink/transport/SdlBroadcastReceiver.java b/sdl_android_lib/src/com/smartdevicelink/transport/SdlBroadcastReceiver.java
index fa243c585..3de3d5a67 100644
--- a/sdl_android_lib/src/com/smartdevicelink/transport/SdlBroadcastReceiver.java
+++ b/sdl_android_lib/src/com/smartdevicelink/transport/SdlBroadcastReceiver.java
@@ -22,7 +22,6 @@ public abstract class SdlBroadcastReceiver extends BroadcastReceiver{
private static final String BOOT_COMPLETE = "android.intent.action.BOOT_COMPLETED";
private static final String ACL_CONNECTED = "android.bluetooth.device.action.ACL_CONNECTED";
- private static final String STATE_CHANGED = "android.bluetooth.adapter.action.STATE_CHANGED" ;
protected static final String SDL_ROUTER_SERVICE_CLASS_NAME = "sdlrouterservice";
@@ -58,7 +57,6 @@ public abstract class SdlBroadcastReceiver extends BroadcastReceiver{
if(!(action.equalsIgnoreCase(BOOT_COMPLETE)
|| action.equalsIgnoreCase(ACL_CONNECTED)
- || action.equalsIgnoreCase(STATE_CHANGED)
|| action.equalsIgnoreCase(USBTransport.ACTION_USB_ACCESSORY_ATTACHED)
|| action.equalsIgnoreCase(TransportConstants.START_ROUTER_SERVICE_ACTION))){
//We don't want anything else here if the child class called super and has different intent filters
@@ -120,20 +118,6 @@ public abstract class SdlBroadcastReceiver extends BroadcastReceiver{
}
- if (intent.getAction().contains("android.bluetooth.adapter.action.STATE_CHANGED")){
- int state = intent.getIntExtra("android.bluetooth.adapter.extra.STATE",-1);
- if (state == BluetoothAdapter.STATE_OFF ||
- state == BluetoothAdapter.STATE_TURNING_OFF ){
- //onProtocolDisabled(context);
- //Let's let the service that is running manage what to do for this
- //If we were to do it here, for every instance of this BR it would send
- //an intent to stop service, where it's only one that is needed.
- return;
- }else if(state == BluetoothAdapter.STATE_TURNING_ON){
- //We started bluetooth, we should check for a new valid router list
- RouterServiceValidator.createTrustedListRequest(context,true);
- }
- }
if(localRouterClass!=null){ //If there is a supplied router service lets run some logic regarding starting one