mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
0.4.9 make app not crash when people try to run this on an emulator ;-)
This commit is contained in:
parent
bfff5f6215
commit
99b66b3396
2 changed files with 5 additions and 5 deletions
|
|
@ -384,10 +384,10 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
|||
// Remove the old radio buttons and repopulate
|
||||
deviceRadioGroup.removeAllViews()
|
||||
|
||||
val adapter = scanModel.bluetoothAdapter!!
|
||||
if (adapter.isEnabled) {
|
||||
val adapter = scanModel.bluetoothAdapter
|
||||
if (adapter != null && adapter.isEnabled) {
|
||||
// This code requres BLE to be enabled
|
||||
|
||||
|
||||
var hasShownOurDevice = false
|
||||
devices.values.forEach { device ->
|
||||
hasShownOurDevice =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue