kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix warnings
rodzic
804a9f8886
commit
d510576fa8
|
@ -621,7 +621,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
||||||
position: Int,
|
position: Int,
|
||||||
id: Long
|
id: Long
|
||||||
) {
|
) {
|
||||||
val item = parent.getItemAtPosition(position) as String
|
val item = parent.getItemAtPosition(position) as String?
|
||||||
val asProto = item!!.let { RadioConfigProtos.RegionCode.valueOf(it) }
|
val asProto = item!!.let { RadioConfigProtos.RegionCode.valueOf(it) }
|
||||||
exceptionToSnackbar(requireView()) {
|
exceptionToSnackbar(requireView()) {
|
||||||
model.region = asProto
|
model.region = asProto
|
||||||
|
@ -657,7 +657,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
||||||
|
|
||||||
|
|
||||||
// Only let user edit their name or set software update while connected to a radio
|
// Only let user edit their name or set software update while connected to a radio
|
||||||
model.isConnected.observe(viewLifecycleOwner, Observer { connectionState ->
|
model.isConnected.observe(viewLifecycleOwner, Observer { _ ->
|
||||||
updateNodeInfo()
|
updateNodeInfo()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue