mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
If we are unable to generate a barcode, just show nothing
This commit is contained in:
parent
479f242e06
commit
0c70ae860e
2 changed files with 23 additions and 15 deletions
|
|
@ -98,7 +98,9 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
|
|||
// doesn't cache radioconfig writes.
|
||||
binding.editableCheckbox.isEnabled = connected
|
||||
|
||||
binding.qrView.setImageBitmap(channels.getChannelQR())
|
||||
val bitmap = channels.qrCode
|
||||
if (bitmap != null)
|
||||
binding.qrView.setImageBitmap(bitmap)
|
||||
|
||||
val modemConfig = channel.modemConfig
|
||||
val channelOption = ChannelOption.fromConfig(modemConfig)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue