2022-09-20 22:21:30.632 25741-25741/com.yonigofman.bluetoothscannerapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.yonigofman.bluetoothscannerapp, PID: 25741
java.lang.NumberFormatException: For input string: "0,28"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at com.yonigofman.bluetoothscannerapp.Utils.BTUtils.format(BTUtils.kt:28)
at com.yonigofman.bluetoothscannerapp.Utils.BTUtils.rssiToDistance(BTUtils.kt:22)
at com.yonigofman.bluetoothscannerapp.Other.BTScanner.scanCallback$lambda-0(BTScanner.kt:74)
at com.yonigofman.bluetoothscannerapp.Other.BTScanner.$r8$lambda$sIQvKBc_h8sY_AjP8zdTo6mG2gE(Unknown Source:0)
at com.yonigofman.bluetoothscannerapp.Other.BTScanner$$ExternalSyntheticLambda0.onLeScan(Unknown Source:2)
at android.bluetooth.BluetoothAdapter$3.onScanResult(BluetoothAdapter.java:3310)
at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper$1.run(BluetoothLeScanner.java:498)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7615)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)