mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: remove constructor from DeviceSettingsFragment
This commit is contained in:
parent
e20e66b7f7
commit
b93098cbce
4 changed files with 27 additions and 6 deletions
|
|
@ -751,9 +751,10 @@ class MainActivity : AppCompatActivity(), Logging {
|
|||
return true
|
||||
}
|
||||
R.id.radio_config -> {
|
||||
val node = model.ourNodeInfo.value ?: return true
|
||||
if (model.ourNodeInfo.value == null) return true
|
||||
model.setDestNode(null)
|
||||
supportFragmentManager.beginTransaction()
|
||||
.add(R.id.mainActivityLayout, DeviceSettingsFragment(node))
|
||||
.add(R.id.mainActivityLayout, DeviceSettingsFragment())
|
||||
.addToBackStack(null)
|
||||
.commit()
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue