mirror of
https://github.com/adolfintel/OpenPods.git
synced 2026-09-16 15:36:12 -04:00
Forgot to check if logging was enabled
This commit is contained in:
@@ -77,7 +77,7 @@ public class PodsService extends Service {
|
|||||||
private static final long RECENT_BEACONS_MAX_T_NS=10000000000L; //10s
|
private static final long RECENT_BEACONS_MAX_T_NS=10000000000L; //10s
|
||||||
private void startAirPodsScanner() {
|
private void startAirPodsScanner() {
|
||||||
try {
|
try {
|
||||||
Log.d(TAG,"START SCANNER");
|
if(ENABLE_LOGGING) Log.d(TAG,"START SCANNER");
|
||||||
BluetoothManager btManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
|
BluetoothManager btManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
|
||||||
BluetoothAdapter btAdapter = btManager.getAdapter();
|
BluetoothAdapter btAdapter = btManager.getAdapter();
|
||||||
if(btScanner!=null){
|
if(btScanner!=null){
|
||||||
@@ -169,7 +169,7 @@ public class PodsService extends Service {
|
|||||||
private void stopAirPodsScanner(){
|
private void stopAirPodsScanner(){
|
||||||
try{
|
try{
|
||||||
if(btScanner!=null){
|
if(btScanner!=null){
|
||||||
Log.d(TAG,"STOP SCANNER");
|
if(ENABLE_LOGGING) Log.d(TAG,"STOP SCANNER");
|
||||||
btScanner.stopScan(new ScanCallback() {
|
btScanner.stopScan(new ScanCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onScanResult(int callbackType, ScanResult result) {}});
|
public void onScanResult(int callbackType, ScanResult result) {}});
|
||||||
|
|||||||
Reference in New Issue
Block a user