diff --git a/android_app/app/src/main/java/com/health/openscale/gui/preferences/BluetoothPreferences.java b/android_app/app/src/main/java/com/health/openscale/gui/preferences/BluetoothPreferences.java index a2529f3e..bf3cf998 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/preferences/BluetoothPreferences.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/preferences/BluetoothPreferences.java @@ -307,7 +307,7 @@ public class BluetoothPreferences extends PreferenceFragment { super.onStart(); // Restart discovery after e.g. orientation change - if (btScanner.getDialog() != null) { + if (btScanner.getDialog() != null && btScanner.getDialog().isShowing()) { startBluetoothDiscovery(); } }