mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-29 19:20:36 +02:00
Only restart scanning if dialog is showing
This commit is contained in:
@@ -307,7 +307,7 @@ public class BluetoothPreferences extends PreferenceFragment {
|
|||||||
super.onStart();
|
super.onStart();
|
||||||
|
|
||||||
// Restart discovery after e.g. orientation change
|
// Restart discovery after e.g. orientation change
|
||||||
if (btScanner.getDialog() != null) {
|
if (btScanner.getDialog() != null && btScanner.getDialog().isShowing()) {
|
||||||
startBluetoothDiscovery();
|
startBluetoothDiscovery();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user