Loading android/app/src/com/android/bluetooth/btservice/AdapterService.java +2 −3 Original line number Diff line number Diff line Loading @@ -521,6 +521,8 @@ public class AdapterService extends Service { registerReceiver(mAlarmBroadcastReceiver, new IntentFilter(ACTION_ALARM_WAKEUP)); mProfileObserver = new ProfileObserver(getApplicationContext(), this, new Handler()); mProfileObserver.start(); setAdapterService(this); } @Override Loading Loading @@ -576,9 +578,6 @@ public class AdapterService extends Service { // Ignore. } //FIXME: Set static instance here??? setAdapterService(this); //Start Gatt service setGattProfileServiceState(supportedProfileServices,BluetoothAdapter.STATE_ON); } Loading Loading
android/app/src/com/android/bluetooth/btservice/AdapterService.java +2 −3 Original line number Diff line number Diff line Loading @@ -521,6 +521,8 @@ public class AdapterService extends Service { registerReceiver(mAlarmBroadcastReceiver, new IntentFilter(ACTION_ALARM_WAKEUP)); mProfileObserver = new ProfileObserver(getApplicationContext(), this, new Handler()); mProfileObserver.start(); setAdapterService(this); } @Override Loading Loading @@ -576,9 +578,6 @@ public class AdapterService extends Service { // Ignore. } //FIXME: Set static instance here??? setAdapterService(this); //Start Gatt service setGattProfileServiceState(supportedProfileServices,BluetoothAdapter.STATE_ON); } Loading