@@ -184,7 +184,9 @@ void startBluetooth() {
184184 void stopBluetooth () {
185185 Log .d ("ASAPService" , "stop bluetooth" );
186186
187- BluetoothEngine asapBluetoothEngine = BluetoothEngine .getASAPBluetoothEngine ();
187+ BluetoothEngine asapBluetoothEngine =
188+ BluetoothEngine .getASAPBluetoothEngine (this , this );
189+
188190 if (asapBluetoothEngine != null ) {
189191 asapBluetoothEngine .stop ();
190192 }
@@ -195,7 +197,9 @@ void stopBluetooth() {
195197 void startBluetoothDiscoverable () {
196198 Log .d ("ASAPService" , "start bluetooth discoverable" );
197199
198- BluetoothEngine asapBluetoothEngine = BluetoothEngine .getASAPBluetoothEngine ();
200+ BluetoothEngine asapBluetoothEngine =
201+ BluetoothEngine .getASAPBluetoothEngine (this , this );
202+
199203 asapBluetoothEngine .startDiscoverable ();
200204
201205 Log .d ("ASAPService" , "started bluetooth discoverable" );
@@ -205,7 +209,9 @@ void startBluetoothDiscoverable() {
205209 public void startBluetoothDiscovery () {
206210 Log .d ("ASAPService" , "start bluetooth discovery" );
207211
208- BluetoothEngine asapBluetoothEngine = BluetoothEngine .getASAPBluetoothEngine ();
212+ BluetoothEngine asapBluetoothEngine =
213+ BluetoothEngine .getASAPBluetoothEngine (this , this );
214+
209215 asapBluetoothEngine .startDiscovery ();
210216
211217 Log .d ("ASAPService" , "started bluetooth discovery" );
0 commit comments