mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix an autobug that occurred on a Droid Turbo (whatever that is)
This commit is contained in:
parent
d669a06ed7
commit
f4e96b936f
1 changed files with 8 additions and 6 deletions
|
|
@ -418,12 +418,14 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
|||
val selectedAddr = scanModel.selectedMacAddr
|
||||
if (!hasShownOurDevice && selectedAddr != null) {
|
||||
val bDevice = scanModel.bluetoothAdapter!!.getRemoteDevice(selectedAddr)
|
||||
val curDevice = BTScanModel.BTScanEntry(
|
||||
bDevice.name,
|
||||
bDevice.address,
|
||||
bDevice.bondState == BOND_BONDED
|
||||
)
|
||||
addDeviceButton(curDevice, false)
|
||||
if (bDevice.name != null) { // ignore nodes that node have a name, that means we've lost them since they appeared
|
||||
val curDevice = BTScanModel.BTScanEntry(
|
||||
bDevice.name,
|
||||
bDevice.address,
|
||||
bDevice.bondState == BOND_BONDED
|
||||
)
|
||||
addDeviceButton(curDevice, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue